Wikipedia talk:How to create charts for Wikipedia articles

This is an old revision of this page, as edited by O18 (talk | contribs) at 22:42, 17 August 2009 (examples?: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 16 years ago by Pdbailey in topic examples?

Gnuplot??

In the part about Gnuplot, it suggests to create postscript files and then to convert them to png. The output is very nice, but according to the guidelines of Wikipedia it should be better to use SVG for plots: this way we get the highest quality at the minimum space.

Should we change the article according to that?? (it is enough to put "set terminal svg" at the beginning of the gnuplot script!) Alessio Damato 12:07, 26 November 2005 (UTC)Reply

I've updated it, but it needs work. The article was written before SVG was supported.
No, it's not as simple as setting the terminal to SVG, as the default output is quite inferior. Lots of tweaks need to be made. I am constantly trying to figure out the best settings. Image:sinc function (normalized).svg is the best I have come up with so far. — Omegatron 04:34, 4 June 2006 (UTC)Reply
I just tried using gnuplot for the first time, and it took me about 5 hours to make a pretty simple graph. (Image:Geothermal_capacity.svg) I think I'm more technically inclined than most Wikipedia editors, so that's pretty bad. I think any recommendation to use gnuplot here should be accompanied with warnings about the sparse documentation, the inability to make pie charts, the buggy margin and offset calculations that have to be adjusted by hand, the fact that these margins and offset will be different in the SVG output than the windows terminal, the impossibility of saving SVG settings since they reset to windows defaults every time you load an SVG plot file, the need to close the output file with "set ouput" before you can view it, the necessity to keep data and instruction files separate, etc. In short, it is not at all suitable for the average user. The list of recommended software should start with spreadsheets like Excel and OpenOffice Calc, maybe followed by the R programming language for more complicated graphs. (Although I haven't tried R yet.)--Yannick (talk) 17:01, 12 April 2009 (UTC)Reply

m:EasyTimeline

This page is useful. Maybe also worth mentioning that if the graph is a relatively simple bar graph, it can be created by EasyTimeline, which is fun, although the learning curve is a bit steep. (The easiest way to create a new one is to adapt an existing one.) pfctdayelise (translate?) 14:23, 15 November 2006 (UTC)Reply

Alternative to Inkscape

Hi, Have you heard/read about geogebra? I think this might be a lot more useful than Inkscape or maybe even GnuPlot for making plots. I don't want to promote it, but I think it is much easier to use to make graphs than Inkscape or GnuPlot for a beginner. Here's its homepage if you want to take a look at it: http://www.geogebra.org/cms/ It's free software and runs on several platforms as it is programmed in Java —Preceding unsigned comment added by 85.127.185.228 (talk) 00:52, 21 March 2008 (UTC)Reply

The last time I tried it, the SVG output is wonky. I also remember the author explicitly stating that the program was not intended for artists, and hence he would not develop features for them. It is a great program though. Maybe he was just having a bad day. SharkD (talk) 05:14, 12 August 2009 (UTC)Reply

Graphs in Excel or Matlab

I was wondering if graphs made in commercial software like Microsoft Excel, Matlab or Mathematica are allowed under a free licence. I would expect that those companies put restrictions in their licences regarding the use of the graphs that can be produced with them. Yet I see a lot of Excel graphs, for instance in here and here. Does anyone know this? Mtcv (talk) 15:33, 21 July 2008 (UTC)Reply

In general, Yes, as long as the EULA doesn't prohibit it. 'Normal' licenses don't often restrict what you can do with the content you make with the program, but academic and some other limited licenses (like on Student editions of Microsoft Office 2007, though it doesn't obviously say so) do put some restrictions on what you can do with the content (usually, that it be used for educational and/or non-commercial purposes only), in exchange for a cheaper price (though, for MS Office 2007, that's obviously not true, since the restriction applies to the retail version of the edition). Note that Wikipedia does not allow non-commercial images to be used without also having a fair-use rationale.
However, there are also several FOSS alternatives with no such restrictions.
Program Alternative
Excel OpenOffice.org, Gnumeric, R
Matlab Octave
Mathematica Maxima
--Dreikin (talk) 06:13, 23 November 2008 (UTC)Reply

More How To on including data and instructions to update wanted

For economic data in particular, the graphs need to be updated periodically, eg GDP, DJIA historical plots. I see some graphs include a data table, but most don't, and I don't see details on instructions to produce update. Can more information be provided on this with recommendations? I think that the data plus the GNUplot commands are the two key requirements. Mulp (talk) 20:08, 11 August 2009 (UTC)Reply

examples?

Would it make sense to have examples of GPL code that generates figures? I am thinking of some of the figures I have made might be useful. i.e. File:USDebt.png PDBailey (talk) 22:42, 17 August 2009 (UTC)Reply