bugGNU Octave - Bugs: bug #38323, printing image to svg uses same...

 
 

bug #38323: printing image to svg uses same embedded png filename with gnuplot 4.6

Submitted by:  None
Submitted on:  Wed 13 Feb 2013 09:06:46 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: ConfirmedAssigned to: None
Originator Name: Daniel KottkeOriginator Email: -unavailable-
Open/Closed: OpenRelease: 3.6.2
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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.

Mike Miller <mtmiller>
Project Member
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.

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
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.

Anonymous
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?

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
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.

Anonymous
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?

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
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.

Anonymous
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:

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Feb 2013 05:53:07 PM UTCmtmillerCategoryPlotting=>Plotting with gnuplot
      Summary embedded png in svg missing in fltk when printing; always same png filename with gnuplo=>printing image to svg uses same embedded png filename with gnuplot 4.6
    Wed 13 Feb 2013 03:20:25 PM UTCjordighStatusNeed Info=>Confirmed
      SummaryMissing image when printing in folder=> embedded png in svg missing in fltk when printing; always same png filename with gnuplo
    Wed 13 Feb 2013 02:38:37 PM UTCjordighStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup