Limiting z axis in 3d plot

82 views
Skip to first unread message

marcop...@googlemail.com

unread,
Nov 13, 2008, 6:36:04 AM11/13/08
to sage-support
Hello,
I am a new user of Sage and I have been trying to draw a standard 3d
plot, where I would like only a portion of the vertical axis to be
displayed. I tried inserting z bounds in the plot3d and also tried
issuing a p.show(zmin=0, zmax=0.007) command, but it seems the first
option had no effect and that .show only supports xmin/xmax and ymin/
ymax arguments.
As I could not find any clue on how to solve this by using
autocompletion or consulting the manual, I was wondering if anybody
had managed to deal with the same problem.
Thanks in advance,
Marco

William Stein

unread,
Nov 13, 2008, 9:29:10 AM11/13/08
to sage-s...@googlegroups.com
There is no direct support (yet) for clipping like you want.
You might try making the x and y axis bigger then setting the zoom before
displaying the plot, which might have the same effect as clipping the
z-axis.

William

> Thanks in advance,
> Marco
>
> >
>



--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

marcop...@googlemail.com

unread,
Nov 13, 2008, 9:35:30 AM11/13/08
to sage-support
Thanks, I will try that.
I am also considering drawing with GnuPlot rather than Jmol ...

Marco

On Nov 13, 3:29 pm, "William Stein" <wst...@gmail.com> wrote:
[...]
>
> There is no direct support (yet) for clipping like you want.
> You might try making the x and y axis bigger then setting the zoom before
> displaying the plot, which might have the same effect as clipping the
> z-axis.
>
> William
[...]

William Stein

unread,
Nov 13, 2008, 9:39:18 AM11/13/08
to sage-s...@googlegroups.com
On Thu, Nov 13, 2008 at 6:35 AM, marcop...@googlemail.com
<marcop...@googlemail.com> wrote:
>
> Thanks, I will try that.
> I am also considering drawing with GnuPlot rather than Jmol ...

Another possibility is tachyon. There is also a Python/Gnuplot interface,
by the way, which you might find useful.

> Marco
>
> On Nov 13, 3:29 pm, "William Stein" <wst...@gmail.com> wrote:
> [...]
>>
>> There is no direct support (yet) for clipping like you want.
>> You might try making the x and y axis bigger then setting the zoom before
>> displaying the plot, which might have the same effect as clipping the
>> z-axis.
>>
>> William
> [...]
> >
>



Reply all
Reply to author
Forward
0 new messages