## Re: [Maxima-discuss] Scale of zaxis

 Re: [Maxima-discuss] Scale of zaxis From: Jan Hendrik Mueller - 2014-02-28 13:18:08 ```Hi Mario, thanks, that solves the problem! If I add „set xyplane at 0“ a negative part of the z-axis is displayed. Is there a way to avoid this? Code below! Thanks for help!! Jan load(draw)\$ wxdraw3d( user_preamble = "set view ,,,2 ; set xyplane at 0", xrange=[0,5],yrange=[0,5],zrange=[0,10], grid=true, color=red, parametric_surface(s,0,t,s,0,4,t,0,6) ); Am 27.02.2014 um 21:35 schrieb Mario Rodriguez : > > El 27/02/14 16:41, Jan Hendrik Mueller escribió: >> Hi list, >> I tried to scale (stretch) the zaxis of a wxdraw3d plot to draw parametric curves. >> proportional_axis=xyz or user_preamble="set size ratio 1" are the only options which change its default scale. But I want to handle it a bit more flexible... >> I am using maxima 5.28.0 and wxmaxima 12.08.0 >> Thanks for help! >> Jan > > > Make use of 'view' in user_preamble: > > wxdraw( > dimensions=[400,800], > > gr3d( > explicit(x^2+y^2,x,-1,1,y,-1,1), > user_preamble="set view ,,0.35,5 "), > > gr3d( > explicit(x^2+y^2,x,-1,1,y,-1,1), > user_preamble="set view ,,,0.2 " ))\$ > > > Draw sets the first and second arguments, and maintains the third (plot > scale) and fourth (z scale) always equal to 1. > > The Gnuplot manual gives more information on the arguments to be passed > to view. > > > -- > Marioi > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Maxima-discuss mailing list > Maxima-discuss@... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss ```

 [Maxima-discuss] Scale of zaxis From: Jan Hendrik Mueller - 2014-02-27 15:54:27 ```Hi list, I tried to scale (stretch) the zaxis of a wxdraw3d plot to draw parametric curves. proportional_axis=xyz or user_preamble="set size ratio 1" are the only options which change its default scale. But I want to handle it a bit more flexible... I am using maxima 5.28.0 and wxmaxima 12.08.0 Thanks for help! Jan ```
 Re: [Maxima-discuss] Scale of zaxis From: Mario Rodriguez - 2014-02-27 20:35:27 ```El 27/02/14 16:41, Jan Hendrik Mueller escribió: > Hi list, > I tried to scale (stretch) the zaxis of a wxdraw3d plot to draw parametric curves. > proportional_axis=xyz or user_preamble="set size ratio 1" are the only options which change its default scale. But I want to handle it a bit more flexible... > I am using maxima 5.28.0 and wxmaxima 12.08.0 > Thanks for help! > Jan Make use of 'view' in user_preamble: wxdraw( dimensions=[400,800], gr3d( explicit(x^2+y^2,x,-1,1,y,-1,1), user_preamble="set view ,,0.35,5 "), gr3d( explicit(x^2+y^2,x,-1,1,y,-1,1), user_preamble="set view ,,,0.2 " ))\$ Draw sets the first and second arguments, and maintains the third (plot scale) and fourth (z scale) always equal to 1. The Gnuplot manual gives more information on the arguments to be passed to view. -- Marioi ```
 Re: [Maxima-discuss] Scale of zaxis From: Jan Hendrik Mueller - 2014-02-28 13:18:08 ```Hi Mario, thanks, that solves the problem! If I add „set xyplane at 0“ a negative part of the z-axis is displayed. Is there a way to avoid this? Code below! Thanks for help!! Jan load(draw)\$ wxdraw3d( user_preamble = "set view ,,,2 ; set xyplane at 0", xrange=[0,5],yrange=[0,5],zrange=[0,10], grid=true, color=red, parametric_surface(s,0,t,s,0,4,t,0,6) ); Am 27.02.2014 um 21:35 schrieb Mario Rodriguez : > > El 27/02/14 16:41, Jan Hendrik Mueller escribió: >> Hi list, >> I tried to scale (stretch) the zaxis of a wxdraw3d plot to draw parametric curves. >> proportional_axis=xyz or user_preamble="set size ratio 1" are the only options which change its default scale. But I want to handle it a bit more flexible... >> I am using maxima 5.28.0 and wxmaxima 12.08.0 >> Thanks for help! >> Jan > > > Make use of 'view' in user_preamble: > > wxdraw( > dimensions=[400,800], > > gr3d( > explicit(x^2+y^2,x,-1,1,y,-1,1), > user_preamble="set view ,,0.35,5 "), > > gr3d( > explicit(x^2+y^2,x,-1,1,y,-1,1), > user_preamble="set view ,,,0.2 " ))\$ > > > Draw sets the first and second arguments, and maintains the third (plot > scale) and fourth (z scale) always equal to 1. > > The Gnuplot manual gives more information on the arguments to be passed > to view. > > > -- > Marioi > > ------------------------------------------------------------------------------ > Flow-based real-time traffic analytics software. Cisco certified tool. > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer > Customize your own dashboards, set traffic alerts and generate reports. > Network behavioral analysis & security monitoring. All-in-one tool. > http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk > _______________________________________________ > Maxima-discuss mailing list > Maxima-discuss@... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss ```
 Re: [Maxima-discuss] Scale of zaxis From: Mario Rodriguez - 2014-02-28 19:03:27 ```On Fri, 28 Feb 2014 14:04:54 +0100 Jan Hendrik Mueller wrote: > Hi Mario, > thanks, that solves the problem! > If I add „set xyplane at 0“ a negative part of the z-axis is displayed. Is there a way to avoid this? Code below! > Thanks for help!! > Jan > > load(draw)\$ > wxdraw3d( > user_preamble = "set view ,,,2 ; set xyplane at 0", > xrange=[0,5],yrange=[0,5],zrange=[0,10], > grid=true, > color=red, > parametric_surface(s,0,t,s,0,4,t,0,6) > ); > > Jan, When I run your code the z axis starts just at (0,0,0) as expected, both with wxdraw2d and draw2d. Can you send a screenshot to me, please? -- Mario ```
 Re: [Maxima-discuss] Scale of zaxis From: Jan Hendrik Mueller - 2014-02-28 20:39:01 Attachments: Message as HTML ```here you are: Am 28.02.2014 um 20:03 schrieb Mario Rodriguez : > On Fri, 28 Feb 2014 14:04:54 +0100 > Jan Hendrik Mueller wrote: > >> Hi Mario, >> thanks, that solves the problem! >> If I add „set xyplane at 0“ a negative part of the z-axis is displayed. Is there a way to avoid this? Code below! >> Thanks for help!! >> Jan >> >> load(draw)\$ >> wxdraw3d( >> user_preamble = "set view ,,,2 ; set xyplane at 0", >> xrange=[0,5],yrange=[0,5],zrange=[0,10], >> grid=true, >> color=red, >> parametric_surface(s,0,t,s,0,4,t,0,6) >> ); >> >> > > Jan, > > When I run your code the z axis starts just at (0,0,0) as expected, both with wxdraw2d and draw2d. > > Can you send a screenshot to me, please? > > -- > Mario ```
 Re: [Maxima-discuss] Scale of zaxis From: Jan Hendrik Mueller - 2014-03-01 10:09:37 Attachments: data.gnuplot     maxout.gnuplot     Message as HTML ```My Maxima Version ist 5.28.0. I am using it on a MacBook with OSX10.9.1. with Gnuplot (4.2) via X11 (2.7.5). Maybe I should update Gnuplot… You will find the two files attached… Gracias por tu ayuda! ```
 Re: [Maxima-discuss] Scale of zaxis From: Mario Rodriguez - 2014-03-01 16:47:03 ```El 01/03/14 11:09, Jan Hendrik Mueller escribió: > My Maxima Version ist 5.28.0. I am using it on a MacBook with OSX10.9.1. with Gnuplot (4.2) via X11 (2.7.5). Maybe I should update Gnuplot… Sure, this is a very old version. Many features were introduced later. > You will find the two files attached… With them I get a very nice z-axis ranging from 0 to 10, without the segment on the negative part. > Gracias por tu ayuda! Bitte, ich habe gern geholfen :-) Herzliche Grüsse! -- Mario ```