Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4245 > unrolled thread
| Started by | Dieter Britz <dieterhansbritz@gmail.com> |
|---|---|
| First post | 2019-10-29 09:30 +0000 |
| Last post | 2019-11-01 10:36 +0000 |
| Articles | 10 — 4 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
3D plot Dieter Britz <dieterhansbritz@gmail.com> - 2019-10-29 09:30 +0000
Re: 3D plot au76666 <britz@chem.au.dk> - 2019-10-31 10:33 +0000
Re: 3D plot au76666 <britz@chem.au.dk> - 2019-10-31 13:11 +0000
Re: 3D plot Chris Elvidge <chris@mshome.net> - 2019-10-31 14:27 +0000
Re: 3D plot Jörg Buchholz <bookwood4new@freenet.de> - 2019-11-01 08:20 +0100
Re: 3D plot au76666 <britz@chem.au.dk> - 2019-11-01 10:29 +0000
Re: 3D plot Jörg Buchholz <bookwood4new@freenet.de> - 2019-11-01 14:33 +0100
Re: 3D plot au76666 <britz@chem.au.dk> - 2019-11-01 14:11 +0000
Re: 3D plot Jörg Buchholz <bookwood4new@freenet.de> - 2019-11-01 16:50 +0100
Re: 3D plot au76666 <britz@chem.au.dk> - 2019-11-01 10:36 +0000
| From | Dieter Britz <dieterhansbritz@gmail.com> |
|---|---|
| Date | 2019-10-29 09:30 +0000 |
| Subject | 3D plot |
| Message-ID | <qp90sa$svb$1@dont-email.me> |
I have this script: gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' set title 'CD, L = 1' set xrange [0:1.0] set yrange [0:1.0] set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" set ylabel "Y" set zlabel "cd" unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi The result is here: http://dieterbritz.dk/CDL1.pdf 1. How do I move the x-axis labels (0, 0.5, 1) a bit lower down so that the 0.5 doesn't hit the base line? 2. How do I lower the plot so that the zero level is right at the bottom? 3 The orientation is not bad as is, but I tried to play with the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 rotate=pi and there was an error with rotate. How is that done? -- Dieter Britz
[toc] | [next] | [standalone]
| From | au76666 <britz@chem.au.dk> |
|---|---|
| Date | 2019-10-31 10:33 +0000 |
| Message-ID | <qpedai$2he$1@dont-email.me> |
| In reply to | #4245 |
On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: > I have this script: > > gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' > set title 'CD, L = 1' > set xrange [0:1.0] > set yrange [0:1.0] > set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" > set ylabel "Y" > set zlabel "cd" > unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi > > The result is here: http://dieterbritz.dk/CDL1.pdf > > 1. How do I move the x-axis labels (0, 0.5, 1) a bit > lower down so that the 0.5 doesn't hit the base line? > 2. How do I lower the plot so that the zero level is right > at the bottom? > 3 The orientation is not bad as is, but I tried to play with > the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 > rotate=pi and there was an error with rotate. How is that done? I found out how to lower the whole plot. But that, as you can see now (same link) wiped out the zero axis marker for Z. Why is this? And I still want to know how to shift the X-axis numbers so that they don't touch the grid line. -- Dieter Britz
[toc] | [prev] | [next] | [standalone]
| From | au76666 <britz@chem.au.dk> |
|---|---|
| Date | 2019-10-31 13:11 +0000 |
| Message-ID | <qpemhe$pv8$1@dont-email.me> |
| In reply to | #4253 |
On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: > On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: > >> I have this script: >> >> gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' >> set title 'CD, L = 1' >> set xrange [0:1.0] >> set yrange [0:1.0] >> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >> set ylabel "Y" >> set zlabel "cd" >> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >> >> The result is here: http://dieterbritz.dk/CDL1.pdf >> >> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >> lower down so that the 0.5 doesn't hit the base line? >> 2. How do I lower the plot so that the zero level is right >> at the bottom? >> 3 The orientation is not bad as is, but I tried to play with >> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >> rotate=pi and there was an error with rotate. How is that done? > > I found out how to lower the whole plot. But that, as you can see now > (same link) wiped out the zero axis marker for Z. Why is this? > And I still want to know how to shift the X-axis numbers so that they > don't touch the grid line. Forget it, I have worked around it. -- Dieter Britz
[toc] | [prev] | [next] | [standalone]
| From | Chris Elvidge <chris@mshome.net> |
|---|---|
| Date | 2019-10-31 14:27 +0000 |
| Message-ID | <qper0n$kqo$1@dont-email.me> |
| In reply to | #4254 |
On 31/10/2019 13:11, au76666 wrote: > On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: > >> On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: >> >>> I have this script: >>> >>> gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' >>> set title 'CD, L = 1' >>> set xrange [0:1.0] >>> set yrange [0:1.0] >>> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >>> set ylabel "Y" >>> set zlabel "cd" >>> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >>> >>> The result is here: http://dieterbritz.dk/CDL1.pdf >>> >>> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >>> lower down so that the 0.5 doesn't hit the base line? >>> 2. How do I lower the plot so that the zero level is right >>> at the bottom? >>> 3 The orientation is not bad as is, but I tried to play with >>> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >>> rotate=pi and there was an error with rotate. How is that done? >> >> I found out how to lower the whole plot. But that, as you can see now >> (same link) wiped out the zero axis marker for Z. Why is this? >> And I still want to know how to shift the X-axis numbers so that they >> don't touch the grid line. > > Forget it, I have worked around it. > > > Please tell ...... -- Chris Elvidge, England
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2019-11-01 08:20 +0100 |
| Message-ID | <qpgmc5$pnb$1@dont-email.me> |
| In reply to | #4255 |
On 31.10.2019 15:27, Chris Elvidge wrote: > On 31/10/2019 13:11, au76666 wrote: >> On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: >> >>> On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: >>> >>>> I have this script: >>>> >>>> gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' >>>> set title 'CD, L = 1' >>>> set xrange [0:1.0] >>>> set yrange [0:1.0] >>>> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >>>> set ylabel "Y" >>>> set zlabel "cd" >>>> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >>>> >>>> The result is here: http://dieterbritz.dk/CDL1.pdf >>>> >>>> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >>>> lower down so that the 0.5 doesn't hit the base line? >>>> 2. How do I lower the plot so that the zero level is right >>>> at the bottom? >>>> 3 The orientation is not bad as is, but I tried to play with >>>> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >>>> rotate=pi and there was an error with rotate. How is that done? >>> >>> I found out how to lower the whole plot. But that, as you can see now >>> (same link) wiped out the zero axis marker for Z. Why is this? >>> And I still want to know how to shift the X-axis numbers so that they >>> don't touch the grid line. >> >> Forget it, I have worked around it. >> >> >> > Please tell ...... > > Nobody needs a "work around" for that. See help xtics and use the "offset". It's simple. Jörg
[toc] | [prev] | [next] | [standalone]
| From | au76666 <britz@chem.au.dk> |
|---|---|
| Date | 2019-11-01 10:29 +0000 |
| Message-ID | <qph1f6$mnj$1@dont-email.me> |
| In reply to | #4256 |
On Fri, 01 Nov 2019 08:20:41 +0100, Jörg Buchholz wrote: > On 31.10.2019 15:27, Chris Elvidge wrote: >> On 31/10/2019 13:11, au76666 wrote: >>> On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: >>> >>>> On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: >>>> >>>>> I have this script: >>>>> >>>>> gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' >>>>> set title 'CD, L = 1' >>>>> set xrange [0:1.0] >>>>> set yrange [0:1.0] >>>>> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >>>>> set ylabel "Y" >>>>> set zlabel "cd" >>>>> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >>>>> >>>>> The result is here: http://dieterbritz.dk/CDL1.pdf >>>>> >>>>> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >>>>> lower down so that the 0.5 doesn't hit the base line? >>>>> 2. How do I lower the plot so that the zero level is right >>>>> at the bottom? >>>>> 3 The orientation is not bad as is, but I tried to play with >>>>> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >>>>> rotate=pi and there was an error with rotate. How is that done? >>>> >>>> I found out how to lower the whole plot. But that, as you can see now >>>> (same link) wiped out the zero axis marker for Z. Why is this? >>>> And I still want to know how to shift the X-axis numbers so that they >>>> don't touch the grid line. >>> >>> Forget it, I have worked around it. >>> >>> >>> >> Please tell ...... >> >> > Nobody needs a "work around" for that. See help xtics and use the > "offset". It's simple. > > Jörg I tried that and the numbers got shifted left but still touching the grid line. No doubt I have misread the specs. -- Dieter Britz
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2019-11-01 14:33 +0100 |
| Message-ID | <qphc6s$okf$1@dont-email.me> |
| In reply to | #4257 |
On 01/11/2019 11:29, au76666 wrote: > On Fri, 01 Nov 2019 08:20:41 +0100, Jörg Buchholz wrote: > >> On 31.10.2019 15:27, Chris Elvidge wrote: >>> On 31/10/2019 13:11, au76666 wrote: >>>> On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: >>>> >>>>> On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: >>>>> >>>>>> I have this script: >>>>>> >>>>>> gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' >>>>>> set title 'CD, L = 1' >>>>>> set xrange [0:1.0] >>>>>> set yrange [0:1.0] >>>>>> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >>>>>> set ylabel "Y" >>>>>> set zlabel "cd" >>>>>> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >>>>>> >>>>>> The result is here: http://dieterbritz.dk/CDL1.pdf >>>>>> >>>>>> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >>>>>> lower down so that the 0.5 doesn't hit the base line? >>>>>> 2. How do I lower the plot so that the zero level is right >>>>>> at the bottom? >>>>>> 3 The orientation is not bad as is, but I tried to play with >>>>>> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >>>>>> rotate=pi and there was an error with rotate. How is that done? >>>>> >>>>> I found out how to lower the whole plot. But that, as you can see now >>>>> (same link) wiped out the zero axis marker for Z. Why is this? >>>>> And I still want to know how to shift the X-axis numbers so that they >>>>> don't touch the grid line. >>>> >>>> Forget it, I have worked around it. >>>> >>>> >>>> >>> Please tell ...... >>> >>> >> Nobody needs a "work around" for that. See help xtics and use the >> "offset". It's simple. >> >> Jörg > > I tried that and the numbers got shifted left but still touching > the grid line. No doubt I have misread the specs. > You can specify the offset for x y and z coordinates. For what do you specify the offset? Jörg
[toc] | [prev] | [next] | [standalone]
| From | au76666 <britz@chem.au.dk> |
|---|---|
| Date | 2019-11-01 14:11 +0000 |
| Message-ID | <qphef2$5m2$1@dont-email.me> |
| In reply to | #4259 |
On Fri, 01 Nov 2019 14:33:16 +0100, Jörg Buchholz wrote: > On 01/11/2019 11:29, au76666 wrote: >> On Fri, 01 Nov 2019 08:20:41 +0100, Jörg Buchholz wrote: >> >>> On 31.10.2019 15:27, Chris Elvidge wrote: >>>> On 31/10/2019 13:11, au76666 wrote: >>>>> On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: >>>>> >>>>>> On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: >>>>>> >>>>>>> I have this script: >>>>>>> >>>>>>> gnuplot << eoi set term postscript enh eps 24 set output >>>>>>> 'CDL1.eps' >>>>>>> set title 'CD, L = 1' >>>>>>> set xrange [0:1.0] >>>>>>> set yrange [0:1.0] >>>>>>> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >>>>>>> set ylabel "Y" >>>>>>> set zlabel "cd" >>>>>>> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >>>>>>> >>>>>>> The result is here: http://dieterbritz.dk/CDL1.pdf >>>>>>> >>>>>>> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >>>>>>> lower down so that the 0.5 doesn't hit the base line? >>>>>>> 2. How do I lower the plot so that the zero level is right >>>>>>> at the bottom? >>>>>>> 3 The orientation is not bad as is, but I tried to play with >>>>>>> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >>>>>>> rotate=pi and there was an error with rotate. How is that >>>>>>> done? >>>>>> >>>>>> I found out how to lower the whole plot. But that, as you can see >>>>>> now (same link) wiped out the zero axis marker for Z. Why is this? >>>>>> And I still want to know how to shift the X-axis numbers so that >>>>>> they don't touch the grid line. >>>>> >>>>> Forget it, I have worked around it. >>>>> >>>>> >>>>> >>>> Please tell ...... >>>> >>>> >>> Nobody needs a "work around" for that. See help xtics and use the >>> "offset". It's simple. >>> >>> Jörg >> >> I tried that and the numbers got shifted left but still touching the >> grid line. No doubt I have misread the specs. >> >> > You can specify the offset for x y and z coordinates. For what do you > specify the offset? > > Jörg The numbers under the x axis. Without an offset, they just touch the grid line at Y = 0. -- Dieter Britz
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2019-11-01 16:50 +0100 |
| Message-ID | <qphk7b$94n$1@dont-email.me> |
| In reply to | #4260 |
On 01/11/2019 15:11, au76666 wrote: >>>> Nobody needs a "work around" for that. See help xtics and use the >>>> "offset". It's simple. >>>> >>>> Jörg >>> >>> I tried that and the numbers got shifted left but still touching the >>> grid line. No doubt I have misread the specs. >>> >>> >> You can specify the offset for x y and z coordinates. For what do you >> specify the offset? >> >> Jörg > > The numbers under the x axis. Without an offset, they just touch the > grid line at Y = 0. > Yes, of course set xtics offset first 0,0,-5 This place the tic labels from the x-axis in the negative z-direction. set xtics offset 0,-1 This place the tic labels from the x-axis in the negative y-direction. Jörg
[toc] | [prev] | [next] | [standalone]
| From | au76666 <britz@chem.au.dk> |
|---|---|
| Date | 2019-11-01 10:36 +0000 |
| Message-ID | <qph1s1$mnj$2@dont-email.me> |
| In reply to | #4255 |
On Thu, 31 Oct 2019 14:27:34 +0000, Chris Elvidge wrote: > On 31/10/2019 13:11, au76666 wrote: >> On Thu, 31 Oct 2019 10:33:54 +0000, au76666 wrote: >> >>> On Tue, 29 Oct 2019 09:30:50 +0000, Dieter Britz wrote: >>> >>>> I have this script: >>>> >>>> gnuplot << eoi set term postscript enh eps 24 set output 'CDL1.eps' >>>> set title 'CD, L = 1' >>>> set xrange [0:1.0] >>>> set yrange [0:1.0] >>>> set xtics 0, 0.5, 1 set ytics 0, 0.5, 1 set xlabel "X" >>>> set ylabel "Y" >>>> set zlabel "cd" >>>> unset key splot 'data/CDsL1.dat' w l lt 1 quit eoi >>>> >>>> The result is here: http://dieterbritz.dk/CDL1.pdf >>>> >>>> 1. How do I move the x-axis labels (0, 0.5, 1) a bit >>>> lower down so that the 0.5 doesn't hit the base line? >>>> 2. How do I lower the plot so that the zero level is right >>>> at the bottom? >>>> 3 The orientation is not bad as is, but I tried to play with >>>> the angle of view, e.g. using splot 'data/CDsL1.dat' w l lt 1 >>>> rotate=pi and there was an error with rotate. How is that done? >>> >>> I found out how to lower the whole plot. But that, as you can see now >>> (same link) wiped out the zero axis marker for Z. Why is this? >>> And I still want to know how to shift the X-axis numbers so that they >>> don't touch the grid line. >> >> Forget it, I have worked around it. >> >> >> > Please tell ...... I hate to admit my clumsy solution, but I asked for no xtics and placed the numbers "manually" with label ".." at ... Actually this had the advantage that it fixed the zero mark at the origin, so that it now refers to both X and Z axes, whereas before, gnuplot left out the zero for the Z axis, even though I specified 0, 10, 20 for that. So it's not totally crazy, I think. It did eliminate the tic mark at X = 0.5, but the plot is so dense there that I don't think that will be noticed. I'm not complaining, but I did all this because there seemed to be no response to my question for days. I understand that you are all busy. -- Dieter Britz
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web