Using images for points in gnuplot

て烟熏妆下的殇ゞ 提交于 2019-12-23 18:01:26

问题


I have a frivolous question. Is there any way to use an image in lieu of points in gnuplot? For example, if I was plotting data about pasta consumption or something, I would have pictures of pasta (instead of usual gnuplot points).


回答1:


Another option is to find a dingbats type of font with a suitable glyph. Then you can use "plot with labels" using that glyph as the label string. See for example the 5th plot in the demo http://gnuplot.sourceforge.net/demo/stringvar.html




回答2:


I haven't played around with this feature at all myself, however, there is:

http://gnuplot.sourceforge.net/demo/barchart_art.html

Which shows the use of png files on a bar chart (Note, that this feature was added in Gnuplot 4.5 -- I think). With a little creativity, it seems like you could use that feature to do what you're asking -- although it would require a whole bunch of plot commands so it might be useful to write a script to generate the gnuplot script (or use iteration depending on your dataset) -- Obviously your image files would have to be in a format that your version of gnuplot understands as well ...




回答3:


A possible strategy may be the plot with rgbimage option in gnuplot.

See the second example over here: http://www.gnuplot.info/demo_4.2/image.html

If you relate the center option with your data points, this may be possible.



来源:https://stackoverflow.com/questions/9985209/using-images-for-points-in-gnuplot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!