Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3580 > unrolled thread

beginner question

Started bydale <dale@dalekelly.org>
First post2017-03-17 23:01 -0400
Last post2017-03-18 15:38 -0400
Articles 4 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  beginner question dale <dale@dalekelly.org> - 2017-03-17 23:01 -0400
    Re: beginner question Karl Ratzsch <mail.kfr@gmx.net> - 2017-03-18 12:04 +0100
      Re: beginner question dale <dale@dalekelly.org> - 2017-03-18 12:48 -0400
        Re: beginner question dale <dale@dalekelly.org> - 2017-03-18 15:38 -0400

#3580 — beginner question

Fromdale <dale@dalekelly.org>
Date2017-03-17 23:01 -0400
Subjectbeginner question
Message-ID<a6etek.7s4.19.1@news.alt.net>
I'm trying to plot three dimensional points

splot "cube.txt"

where cube.txt is as follows

0 0 0
0 0 100
0 100 100
0 100 0
0 100 100
100 0 0
100 100 0
100 100 100

the points are okay but the zaxis has two zeroes and a space between 
them, I have set xrange, yrange and zrange and the zaxis remains the same

if I do

plot "square.txt"

where square.txt is as follows

0 0
0 100
100 0
100 100

the x and y axis work as I want


I did a little with autoscale, is this where I need to look?

-- 
dale | http://www.dalekelly.org

[toc] | [next] | [standalone]


#3581

FromKarl Ratzsch <mail.kfr@gmx.net>
Date2017-03-18 12:04 +0100
Message-ID<oaj477$l8b$1@solani.org>
In reply to#3580
Am 18.03.2017 um 04:01 schrieb dale:
> I'm trying to plot three dimensional points
> 
> splot "cube.txt"

> the points are okay but the zaxis has two zeroes and a space between
> them, I have set xrange, yrange and zrange and the zaxis remains the
> same
> 

I get numbered tics at 0,20,40...100 on the x,y and z-axis.

The zero at the intersection of the z-axis with the xy-plane belongs
to the x-axis.

[toc] | [prev] | [next] | [standalone]


#3582

Fromdale <dale@dalekelly.org>
Date2017-03-18 12:48 -0400
Message-ID<a6gduf.1v7.19.1@news.alt.net>
In reply to#3581
On 3/18/17 7:04 AM, Karl Ratzsch wrote:
> Am 18.03.2017 um 04:01 schrieb dale:
>> I'm trying to plot three dimensional points
>>
>> splot "cube.txt"
> 
>> the points are okay but the zaxis has two zeroes and a space between
>> them, I have set xrange, yrange and zrange and the zaxis remains the
>> same
>>
> 
> I get numbered tics at 0,20,40...100 on the x,y and z-axis.
> 
> The zero at the intersection of the z-axis with the xy-plane belongs
> to the x-axis.
> 

gnuplot> set xrange [0:100]
gnuplot> set yrange [0:100]
gnuplot> set zrange [0:100]
gnuplot> set xtics 0,10,100
gnuplot> set ytics 0,10,100
gnuplot> set ztics 0,10,100
gnuplot> splot "cube.txt"

still two zero planes along z axis

xaxis is now reversed (100 to 0)

-- 
dale | http://www.dalekelly.org

[toc] | [prev] | [next] | [standalone]


#3583

Fromdale <dale@dalekelly.org>
Date2017-03-18 15:38 -0400
Message-ID<a6gntb.qfb.17.1@news.alt.net>
In reply to#3582
On 3/18/17 12:48 PM, dale wrote:
> On 3/18/17 7:04 AM, Karl Ratzsch wrote:
>> Am 18.03.2017 um 04:01 schrieb dale:
>>> I'm trying to plot three dimensional points
>>>
>>> splot "cube.txt"
>>
>>> the points are okay but the zaxis has two zeroes and a space between
>>> them, I have set xrange, yrange and zrange and the zaxis remains the
>>> same
>>>
>>
>> I get numbered tics at 0,20,40...100 on the x,y and z-axis.
>>
>> The zero at the intersection of the z-axis with the xy-plane belongs
>> to the x-axis.
>>
> 
> gnuplot> set xrange [0:100]
> gnuplot> set yrange [0:100]
> gnuplot> set zrange [0:100]
> gnuplot> set xtics 0,10,100
> gnuplot> set ytics 0,10,100
> gnuplot> set ztics 0,10,100
> gnuplot> splot "cube.txt"
> 
> still two zero planes along z axis
> 
> xaxis is now reversed (100 to 0)
> 

found a solution with a websearch of (gnuplot two xy planes in splot)
http://theochem.ki.ku.dk/on_line_docs/gnuplot/gnuplot_36.html

gnuplot> set xyplane 0

but why wouldn't this be the default?

(set ticslevel is deprecated in Version 5.0 patchlevel 5)

thanks much

-- 
dale | http://www.dalekelly.org

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web