Wed 13 Feb 2013 05:53:07 PM UTC, comment #7:
I can reproduce OPs problem with gnuplot 4.6. Works fine with gnuplot 4.4 because there is no png file. Apparently this is a new feature that makes the svg file smaller by embedding an external png.
A similar problem with this approach is if you print two or more different images to svg, the embedded png file will always have the same filename, gp_image_01.png, overwriting any previous plot saves.
This seems to me like unexpected, unscalable, and backwards-incompatible behavior. I'd be in favor of bypassing this feature of gnuplot if at all possible.
Regarding fltk, is this not already reported as bug #37753? Let's keep this one strictly about this gnuplot problem.
|
Wed 13 Feb 2013 03:20:25 PM UTC, comment #6:
Ah, you're using gnuplot. I'm not. That's why the image is named "gp_"
I'm retitling this bug to reflect the actual problem.
|
Wed 13 Feb 2013 03:00:50 PM UTC, comment #5:
It is always named: 'gp_image_01.png' and its in the current octave directory. So in the folder you started octave.
|
Wed 13 Feb 2013 02:56:44 PM UTC, comment #4:
I don't see a png image at all. What is the name, where are you seeing it?
|
Wed 13 Feb 2013 02:55:09 PM UTC, comment #3:
No, it does include the image (it creates a png-file in your working directory and includes it as embedded-png in the svg file. if your svg is in your working directory, it should work). I found out that a problem is, that octave always uses the same name for the underlaying png. This is why, all your background images look the same in every svg-file, if you do many plots for different situations (that is the real bug of this thread).
To relate to original post: The problem with plotting in a different folder is due to the backgound-png, that is put into the working directory.
|
Wed 13 Feb 2013 02:38:37 PM UTC, comment #2:
As far as I can tell, the subdirectory thing is absolutely irrelevant. The issue is that the svg plot doesn't include the image, only the points in the plot. Can you confirm?
|
Wed 13 Feb 2013 09:25:38 AM UTC, comment #1:
I just found out, that that the reason is a png-file that lies under the svg. This is put into the working folder, and overwriten erverytime, you create a new svg.
I would be good, to name this png like the original svg+suffix and to put it in the same folder.
|
Wed 13 Feb 2013 09:06:46 AM UTC, original submission:
Hello everyone,
when printing a plot created by imshow and plot, there are different results. When printing into a folder, the previously plotted image is missing and just the points show up. See code:
|