carminat (49) [Avatar] Offline
#1
I am using gnuplot to produce pictures to be used in latex files, I have a couple of issues (both simple I guess).

1) I most often produce a tikz file to be included in the latex file, however for some pictures this is inconvenient (imagine for instance a picture showing a cloud of one million of small dots). So it happens that the figures look different (for the fonts, but also for the tics). Which is the best way to get a uniform product even if using different including methods?

2) I have a (double boot) macbook air, when I work under OS X I use texshop. The only way to use the tikz code produced by gnuplot I have found so far is coping in the same working directory the files gnuplot-lua-tikz.sty and gnuplot-lua-tikz-common.tex.
This is not very practical: does anybody know a better (simple) workaround?
philipp.janert (286) [Avatar] Offline
#2
I am sorry, I can't help you there. I am not sure whether there are particular "best practices" for your situation.
428928 (5) [Avatar] Offline
#3
I have to make a plot which consist of a principal graphic and
two inset. I set terminal to tikz, the problem is that the labels made
with the command set label are reproduced three times. It seems that it is
once for each plot. Please is there some one who can tell me how to
fix this problem. Thanks in advance !
philipp.janert (286) [Avatar] Offline
#4
You need to unset each label after each plot, like this:

set multiplot

set label 1 "..."
plot ...
unset label

set label 1 "..."
plot ...
unset label

set label 1 "..."
plot ...
unset label

unset multiplot

Does this fix your problem? If not, please provide more detail (actual commands, and maybe the resulting graph as well).
428928 (5) [Avatar] Offline
#5
Thanks a lot. I have already fixed this problem exactly in this manner.
Than you again, thank you
428928 (5) [Avatar] Offline
#6
3d plot with Gnuplot
Please I have one other problem. I want to plot the two following functions: z=(x**2+y**2)/2-(1/2) and z=-(x**2+y**2)/2)+(1/2) in the same plot and the condition is x**2+y**2<=1.
This is an easy task in Maple or Mathematica but I prefer Gnuplot's quality.
Thank you so much.
philipp.janert (286) [Avatar] Offline
#7
Define functions that include the condition:

f(x,y) = (x**2+y**2)<=1 ? (x**2+y**2)/2-(1/2) : 1/0
g(x,y) = (x**2+y**2)<=1 ? -(x**2+y**2)/2)+(1/2) : 1/0
428928 (5) [Avatar] Offline
#8
Thank you for your time and assistance. I am going to do immediately!
428928 (5) [Avatar] Offline
#9
Thank you Professor. That really solved my problem.