Image:Tuna sizes.svg

From Wikipedia, the free encyclopedia

Tuna_sizes.svg (SVG file, nominally 800 × 400 pixels, file size: 8 KB)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Contents

[edit] Caption

Maximum sizes of Thunnus tuna species. (centimetres)

[edit] Other version

[edit] Creation info

Created in Ruby using SVG::Graph v0.6.1. by Pengo.

First time using SVG::Graph.

[edit] Source code

Output of program must be redirected into a file. e.g. save source code to tuna_graph.rb and then run

ruby tuna_graph.rb > tuna_sizes.svg

Source code follows:

 require 'SVG/Graph/BarHorizontal'

 fields = ['Blackfin', 'Albacore', 'Longtail', 'Yellowfin', 'Southern bluefin', 'Bigeye', 'Pacific bluefin', 'Northern bluefin']
 thedata = [108, 140, 145, 239, 245, 250, 300, 458]

# Note: need to change .xAxisTitle to black by hand still... 
#  .xAxisTitle{
#  text-anchor: middle;
#  fill: #000000;

 graph = SVG::Graph::BarHorizontal.new({
   :height => 400,
   :width => 800,
   :min_scale_value => 0, # 0 = default
   :fields => fields,
   :rotate_y_labels => false,
   :key => false,
   :scale_integers => true, # make sure the scale is in whole numbers
   :scale_divisions => 50,
   :show_x_title => true,
   :x_title => "centimeters"
   #:no_css => true
 })

 graph.add_data({
   :data => thedata,
   :title => 'cm',
   #:show_title => false
 })

 #print "Content-type: image/svg+xml\r\n\r\n"
 print graph.burn

[edit] Licensing

Image credit: Peter Halasz. (User:Pengo)


Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

If you wish to give attribution, please attribute image to:

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current16:10, 24 February 2007800×400 (8 KB)Pengo
03:44, 22 February 2007500×300 (17 KB)Pengo (Maximum sizes of tuna species. {{Pengo}})
03:43, 22 February 20071,052×744 (7 KB)Pengo (Maximum sizes of tuna species. {{Pengo}})
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):