Menu

#2173 windows terminal "save to emf" fails

None
closed-out-of-date
nobody
windows (20)
2022-01-30
2019-05-21
No

after plotting some x and y values, I saved the produced graph as a EMF-file but I couldn't open the emf file afrterwards
I plotted the data with:
plot 'data.txt' with lines

This problem occurs only when I use the tag "with lines" with data.txt

I checked that with some other data ( plot 'otherdata.txt' with lines) but the mentioned problem doesnt occur here.

Why do I get problems by plotting data.txt ? the graph looks normal after plotting, so why does saving the Graph as a EMF-file makes trouble?

thank you!

Kind regards

Related

Bugs: #2173

Discussion

  • Hans-Bernhard Broeker

    It's very hard to answer your questions, because nobody but you currently has any chance of knowing what you actually did when you

    saved the produced graph as a EMF-file

    nor how you attempted to

    open the emf file afrterwards

    Odds are you just failed to close the file after writing to it.

    In other words, you'll have to add details before it makes sense to look at this.

     

    Last edit: Hans-Bernhard Broeker 2019-05-21
  • Vorname Nachname

    Thank you for your respond Mr. Hans-Bernhard Broeker:

    Here the missed details:

    saving:

    after plotting the graph, I saved it with the saving options in the menu bar from the plotting window: menu bar -> options-> save as EMF

    Open:

    search for it in the folder where I saved it and then opened it by double left click with the mouse.
    When I want to open, a pop-up window says me that the graph can not be opened. (it cant be readed or, it isnt a bitmap or the format is incorrect)

    but all this steps are working with the other datas

     
    • Karl Ratzsch

      Karl Ratzsch - 2019-05-21

      So that is the "windows" terminal, I assume. You can try using the wxt terminal (set term wxt), it can also export to emf, or directly use the "emf" terminal

      set output 'test.emf'
      set term push
      set term emf
      plot dataf us 1:2 w l ....
      set term pop
      set output
      

      Other than that, it's impossible to tell from here, as the only difference between those plots is the data file. Unless one of them is extremely large and you hit some size limit (no idea if there is one).

      I can only advise cutting the file in half until you find a smallest subset that still produces the problem.

      (also: does the emf file have a sensible size, when you compare it to the other one after adjusting for number of data points?)

       

      Last edit: Karl Ratzsch 2019-05-21
      • Vorname Nachname

        Thank you for your respond Mr. Karl Ratzsch!

        with this:

        set output 'test.emf'
        set term push
        set term emf
        plot dataf us 1:2 w l

        my problem was solved.

        The lines in my Graph aren't looking as smoothly as in the previous
        try but Im fine with that.

        Kind regards

        Am Di., 21. Mai 2019 um 23:04 Uhr schrieb Karl Ratzsch kf2402@users.sourceforge.net:

        So that is the "windows" terminal, I assume. You can try using the wxt
        terminal (set term wxt), it can also export to emf, or directly use the
        "emf" terminal

        set output 'test.emf'
        set term push
        set term emf
        plot dataf us 1:2 w l ....
        set term pop
        set output

        Other than that, it's impossible to tell from here, as the only difference
        between those plots is the data file. Unless one of them is extremely large
        and you hit some size limit (no idea if there is one).

        I can only advise cutting the file in half until you find a smallest
        subset that still produces the problem.


        Status: open
        Priority:
        Created: Tue May 21, 2019 03:20 PM UTC by Vorname Nachname
        Last Updated: Tue May 21, 2019 04:43 PM UTC
        Owner: nobody

        after plotting some x and y values, I saved the produced graph as a
        EMF-file but I couldn't open the emf file afrterwards
        I plotted the data with:
        plot 'data.txt' with lines

        This problem occurs only when I use the tag "with lines" with data.txt

        I checked that with some other data ( plot 'otherdata.txt' with lines) but
        the mentioned problem doesnt occur here.

        Why do I get problems by plotting data.txt ? the graph looks normal after
        plotting, so why does saving the Graph as a EMF-file makes trouble?

        thank you!

        Kind regards

        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/gnuplot/bugs/2173/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #2173

  • Ethan Merritt

    Ethan Merritt - 2019-05-24
    • summary: saving plot with lines fails --> windows terminal "save to emf" fails
    • Group: -->
    • Priority: -->
     
  • Bastian Märkisch

    Could you please provide the plot commands that cause the failure - ideally in a minimal version?
    Please also note that by default gnuplot saves in EMF+ format which conain both GDI and GDI+ commands. But you can select EMF format in the "Save as..." dialog.
    Which application do you use to open EMF files? By default that is "Paint" I think.

     
  • Bastian Märkisch

    • labels: --> windows
     
  • Ethan Merritt

    Ethan Merritt - 2022-01-30
    • status: open --> closed-out-of-date
     

Log in to post a comment.

MongoDB Logo MongoDB