File talk:US Natural Gas Production.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Mark and copy the following text. Paste it into a plain text file. The text file should have an svg extension, for example mychart.svg.

You can check the result here or here.

<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generator: wikimedia.svg.chart, 2013-08-28 -->
<!-- modify viewBox (x,y,dx,dy) for position (x,y) and size (dx,dy) -->
<svg id="head"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  version="1.1"     
  viewBox="-22.8,-89.8,169.2,111.4"      
  width="750" height="490"
  font-family="Helvetica, Arial"
>

<!-- also a workaround for librsvg: a <rect> must be placed somewhere before text for a good display of text -->
<rect id="imagebackground" x="-22.8" y="-89.8" width="169.2" height="111.4" stroke-width="0.12" stroke="none" fill="white"/>
 
<title>U.S. Natural Gas Production</title>
<desc>   
  This svg graphic is to edit with an text editor.
  Please do not overwrite this file by saving with an image editor.
  ----------------&#13;   Source:         Energy Information Administration
  Available from: http://tonto.eia.gov/dnav/ng/hist/n9050us2a.htm
  1 MMcf = 28 317 m3, 0.353147 MMcf = 10 000 m3, 0.706293 MMcf = 20 000 m3
  2011: 24 036 352 MMcf = 680 633 692 215 m3
</desc>

<style id="styles" type="text/css"> <![CDATA[
  .graphgeneral {         /*-- general look of graphs and markers, e.g. in legend --*/
    stroke-width:    0.84;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  }
  .graphgeneralstretch {  /*-- general look of graphs and markers on a stretched chart --*/ 
    stroke-width:    0.34;
    fill:            none;
    stroke-linejoin: round;
    stroke-linecap:  round;
  } 
.graph1lineblank { /*-- look of graph 1 --*/ stroke: rgb(00%, 00%, 60%); } .graph1line { stroke: rgb(00%, 00%, 60%); }
.graph2lineblank { /*-- look of graph 2 --*/ stroke: rgb(75%, 10%, 10%); } .graph2line { stroke: rgb(75%, 10%, 10%); }
.graph3lineblank { /*-- look of graph 3 --*/ stroke: rgb(00%, 60%, 00%); } .graph3line { stroke: rgb(00%, 60%, 00%); }
.graph4lineblank { /*-- look of graph 4 --*/ stroke: rgb(00%, 60%, 60%); } .graph4line { stroke: rgb(00%, 60%, 60%); }
.graph5lineblank { /*-- look of graph 5 --*/ stroke: rgb(60%, 00%, 60%); } .graph5line { stroke: rgb(60%, 00%, 60%); }
.graph6lineblank { /*-- look of graph 6 --*/ stroke: rgb(60%, 60%, 00%); } .graph6line { stroke: rgb(60%, 60%, 00%); }
.graph7lineblank { /*-- look of graph 7 --*/ stroke: rgb(00%, 00%, 30%); } .graph7line { stroke: rgb(00%, 00%, 30%); }
.graph8lineblank { /*-- look of graph 8 --*/ stroke: rgb(00%, 30%, 00%); } .graph8line { stroke: rgb(00%, 30%, 00%); } .axisline { stroke: black; stroke-width: 0.42; stroke-linecap: round; } .titletext { font-size: 8.712px; } .axistext-x { font-size: 6.48px; } .axistext-x-number { font-size: 6.48px; } .axistext-y { font-size: 7.2px; } .axismark-main { stroke: black; stroke-width: 0.29; } .axismark-second { stroke: black; stroke-width: 0.29; }
.gridline { stroke: black; stroke-width: 0.21; } ]]></style> <defs> <!--== axis dashes definitions ==--> <!-- x-axis mark, modify "height" --> <pattern id="x-axismark-main" x="0" width="10" height="2.4" patternUnits="userSpaceOnUse"> <line x1="0" y1="-1" x2="0" y2="2.4" class="axismark-main"/> </pattern>

<!-- x-axis gridline vertical, modify "width" --> <pattern id="x-gridline" height="60" width="10" patternUnits="userSpaceOnUse"> <line x1="0" x2="0" y1="0" y2="60" class="gridline"/> </pattern>

<!-- y-axis gridline horizontal, modify "height" --> <pattern id="y-gridline" width="240" height="12.5" patternUnits="userSpaceOnUse"> <line x1="0" x2="240" y1="0" y2="0" class="gridline"/> </pattern> <!-- y-axis mark, modify "width" --> <pattern id="y-axismark-main" width="2.4" height="12.5" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="2.4" y2="0" class="axismark-main"/> </pattern> <!-- y-axis2 mark, modify "width" --> <pattern id="y-axis2mark-main" width="1.2" height="17.657325" patternUnits="userSpaceOnUse"> <line x1="-1" y1="0" x2="11" y2="0" class="axismark-main"/> </pattern> </defs> <g transform="scale(1, -1)">
<rect id="x-gridline-area" x="0.3" y="0" width="122.4" height="75" fill="url(#x-gridline)"/>
<rect id="y-gridline-area" x="0" y="0.3" width="120" height="76.5" fill="url(#y-gridline)"/> <!-- x axis, modify "x2" and "width" --> <rect id="x-axismark" x="-0.6" y="-2.1" width="122.4" height="2.1" fill="url(#x-axismark-main)"/> <line id="x-axis" x1="0" y1="0" x2="120" y2="0" class="axisline"/> <!-- y axis, modify "height" --> <rect id="y-axismark" x="-2.1" y="-0.6" width="2.1" height="76" fill="url(#y-axismark-main)"/> <line id="y-axis" x1="0" y1="0" x2="0" y2="75" class="axisline"/>
<rect id="y-axis2mark" x="120" y="-0.6 " width="2.1" height="76" fill="url(#y-axis2mark-main)"/> <line id="y-axis2" x1="120" y1="0" x2="120" y2="75" class="axisline"/> </g> <!-- x axis text, modify each value --> <g id="axistext-x" class="axistext-x-number" transform="translate(0, 8.6)" text-anchor="middle">   <text x=  "0">1900</text>   <text x= "20">1920</text>   <text x= "40">1940</text>   <text x= "60">1960</text>   <text x= "80">1980</text>   <text x="100">2000</text>   <text x="120">2020</text> <text id="title-x" class="axistext-x" x="60" y="8.4" >Year</text> </g> <!-- y axis text, modify each value --> <g id="axistext-y" class="axistext-y" text-anchor="end" transform="translate(-3.6, 1.8)">   <text y=  "-0">0</text>   <text y="-12.5">5</text>   <text y= "-25">10</text>   <text y="-37.5">15</text>   <text y= "-50">20</text>   <text y="-62.5">25</text>   <text y= "-75">30</text> <text id="title-y" x="37.5" y="-13.1" transform="rotate(-90)" text-anchor="middle" >Trillion cubic feet per year</text> </g>

<!-- y axis on right side, modify each value --> <g id="axis2text-y" class="axistext-y" transform="translate(123, 1.8)"> <g text-anchor="start">   <text y=     "-0"> 0 </text>   <text y= "-17.66"> 20 </text>   <text y= "-35.31"> 40 </text>   <text y= "-52.97"> 60 </text>   <text y= "-70.63"> 80 </text> <text id="title-y2" x="37.5" y="17.3" transform="rotate(-90)" text-anchor="middle" >10<tspan dy="-3" font-size="80%">10</tspan><tspan dy="3"> cubic metres per year</tspan></text> </g></g> &#13; <!-- additional text --> <text id="title" class="titletext" text-anchor="middle" x="60" y="-80.3">U.S. Natural Gas Production</text> <!--====== graph data with origin values, you can manually copy or attach the values here ======--> <!-- modify displacement "translate" --> <defs> <g id="graphs"> </g> <g id="graph1"> <!-- graph 1 --> <polyline id="graph1-line" stroke-width="0.34" points=" 1901 0.18 1902 0.21 1903 0.24 1904 0.26 1905 0.32 1906 0.39 1907 0.41 1908 0.4 1909 0.48 1910 0.51 1911 0.51 1912 0.56 1913 0.58 1914 0.59 1915 0.63 1916 0.75 1917 0.8 1918 0.72 1919 0.75 1920 0.81 1921 0.67 1922 0.78 1923 1.03 1924 1.16 1925 1.21 1926 1.34 1927 1.47 1928 1.6 1929 1.95 1930 1.98 1931 1.72 1932 1.59 1933 1.6 1934 1.82 1935 1.97 1936 2.23 1937 2.47 1938 2.36 1939 2.54 1940 2.73 1941 2.89 1942 3.15 1943 3.52 1944 3.82 1945 4.04 1946 4.15 1947 4.58 1948 5.15 1949 5.42 1950 6.28 1951 7.46 1952 8.01 1953 8.4 1954 8.74 1955 9.41 1956 10.08 1957 10.68 1958 11.03 1959 12.05 1960 12.77 1961 13.25 1962 13.88 1963 14.75 1964 15.55 1965 16.04 1966 17.21 1967 18.17 1968 19.32 1969 20.7 1970 21.92 1971 22.49 1972 22.53 1973 22.65 1974 21.6 1975 20.11 1976 19.95 1977 20.03 1978 19.97 1979 20.47 1980 20.18 1981 19.96 1982 18.58 1983 16.88 1984 18.3 1985 17.27 1986 16.86 1987 17.43 1988 17.92 1989 18.1 1990 18.59 1991 18.53 1992 18.71 1993 18.98 1994 19.71 1995 19.51 1996 19.81 1997 19.87 1998 19.96 1999 19.8 2000 20.2 2001 20.57 2002 19.88 2003 19.97 2004 19.52 2005 18.93 2006 19.41 2007 20.2 2008 21.11 2009 21.65 2010 22.38 2011 24.04 2012 25.3 "/> </g> </defs> <g class="graphgeneralstretch" transform="scale(1, -2.5) translate(-1900, -0)">
  <!-- graph 1 --> <use id="graphuse1p2" transform="translate(0.247, 0)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1m2" transform="translate(-0.247, 0)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1p3" transform="translate(-0.081, 0)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1m3" transform="translate(0.081, 0)" class="graph1lineblank" xlink:href="#graph1"/> <use id="graphuse1-1" transform="translate(0, 0)" class="graph1line" xlink:href="#graph1"/> </g> </svg>


Erroneous left scale[edit]

Hi,

I'm not sure where I should edit the SVG file, but the left scale seems to be twice its expected value. The EIA gives about 25 MMcf but the plot shows 50. The right scale is ok. --Factsory (talk) 11:40, 29 September 2013 (UTC)

You are right. I have changed and uploaded the new file. -- Con-struct (talk) 21:01, 30 September 2013 (UTC)