Wikipedia talk:How to create charts for Wikipedia articles

This is an old revision of this page, as edited by Datumizer (talk | contribs) at 02:53, 7 September 2009 (Gnuplot Inkscape compatability). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 15 years ago by SharkD in topic Gnuplot Inkscape compatability

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

Gnuplot Inkscape compatability

I'm trying to create graphs in Gnuplot and then do post-processing for them in Inkscape. I export the SVG from Gnuplot as in the article and the result looks right when opened in Firefox, but when I open the file in Inkscape I don't see the graph. The graph is there; if go you into the XML editor in Inscape you can select it and then manually set the stroke color which will make it appear. Apparently, Gnuplot uses "stroke:currentColor;" to set the color of the curve and Inkscape only recognizes color names, so if you change the SVG to "stroke:black;" instead then Inkscape will be able to read the file properly and the cirve will appear when you open it. I've tried playing with the linetype and linecolor settings in Gnuplot but it doesn't seem to help. As I said, there is a workaround but it's a bit of a kludge. Is there something I'm doing wrong here or is it Gnuplot or Inkscape or both not working properly?--RDBury (talk) 05:15, 5 September 2009 (UTC)Reply

Thanks for the helpful tip. SharkD (talk) 02:53, 7 September 2009 (UTC)Reply