File:Tuna all sizes Pengo.svg

De Wikimedia Commons
Salta a la navegació Salta a la cerca

Fitxer original(fitxer SVG, nominalment 800 × 400 píxels, mida del fitxer: 13 Ko)

Llegendes

Llegendes

Afegeix una explicació d'una línia del que representa aquest fitxer

Caption

[modifica]

Maximum sizes of Thunnus tuna species. (centimetres)

Other version

[modifica]

Creation info

[modifica]

Created in Ruby using SVG::Graph v0.6.1 by Pengo. And then hand-massaged (to make the x-axis use black text, put species names in italics, and shift labels by a few pixels so that they line up properly).

Source code

[modifica]

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_all_sizes.svg

Source code:

 require 'SVG/Graph/BarHorizontal'

 fields = ['Auxis rochei eudorax', 'Auxis rochei rochei', 'Auxis thazard thazard', 'Euthynnus affinis', 'Allothunnus  fallai', 'Thunnus atlanticus', 'Katsuwonus pelamis', 'Euthynnus alletteratus', 'Thunnus alalunga', 'Thunnus tonggol', 'Gasterochisma melampus', 'Thunnus albacares', 'Thunnus maccoyii', 'Gymnosarda unicolor', 'Thunnus obesus', 'Thunnus orientalis', 'Thunnus thynnus']
 thedata = [36.5, 50, 65, 100, 105, 108, 108, 122, 140, 145, 164, 239, 245, 248, 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

Licensing

[modifica]

Image credit: Peter Halasz. (User:Pengo)


Public domain Jo, el titular del copyright d'aquesta obra, l'allibero al domini públic. Això s'aplica a tot el món.
En alguns països això pot no ser legalment possible, en tal cas:
Jo faig concessió a tothom del dret d'usar aquesta obra per a qualsevol propòsit, sense cap condició llevat d'aquelles requerides per la llei.

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

  • Peter Halasz
  • and/or, link to this image page: //commons.wikimedia.org/wiki/File:Tuna_all_sizes_Pengo.svg

Historial del fitxer

Cliqueu una data/hora per veure el fitxer tal com era aleshores.

Data/horaMiniaturaDimensionsUsuari/aComentari
actual06:02, 11 març 2007Miniatura per a la versió del 06:02, 11 març 2007800 × 400 (13 Ko)Pengo (discussió | contribucions){{PD-pengo}}

La pàgina següent utilitza aquest fitxer:

Ús global del fitxer

Utilització d'aquest fitxer en altres wikis:

Metadades