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
It's very hard to answer your questions, because nobody but you currently has any chance of knowing what you actually did when you
nor how you attempted to
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
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
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" terminalOther 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
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:
Related
Bugs:
#2173Could 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.