# [Maxima] request for help getting maxima to plot the like i would want (added images)

Jelle de Jong jelledejong at powercraft.nl
Fri Feb 8 14:59:44 CST 2008

```Mario Rodriguez wrote:
> Hello,
>
>> Hi Mario,
>>
>> Thank you for your help, I compiled the latest maxima and have been
>>
>> However I am still unable to get an X-ax and Y-Ax in the middle:
>>
>>       Y
>>       |
>>       |
>> ----------- X
>>       |
>>       |
>>
>> I have been trying the following input, however I cant get it right.
>>
>
> This is an (baroque) example showing options related to axis in 3d (you
> probably won't need to use all of them!):
>
> draw3d(
>       xaxis=true, xaxis_color = red, xaxis_type=solid, xaxis_width=2,
>       yaxis=true, yaxis_color = aquamarine, yaxis_type=solid,
> yaxis_width=4,
>       zaxis=true, zaxis_color = "#ff25cb", zaxis_type=dots, zaxis_width=6,
>       xrange = [-1,6], yrange = [-1,6], zrange = [-1,6],
>       xlabel = "Athos", ylabel = "Portos", zlabel = "Aramis",
>       user_preamble= "set xyplane at 0",
>       implicit(z=-x-y+5, x,0,5, y,0,5, z,0,5));
>
>
>
>
>> f1: 4;
>> f2: y-x^2;
>> solve(f1=f2,y);
>> draw2d(explicit(%,x,-6,6));
>>
> Note in this example that %[1] is the 1st component of the list returned
> by solve, which is an equation, and rhs returns its right hand side:
>
> f1: 4;
> f2: y-x^2;
> solve(f1=f2,y);
> draw2d(explicit(rhs(%[1]),x,-6,6));
>
>
> hth
>
>

Thanks you all for the help, it helped me started, however I still got a
list of issues. I typed them on the end of this email. I hope somebody
can help me out. I added some plot images in the attachment

Kind regards,

Jelle

f(z):=-2*x-y+4;
rhs(%);
draw3d(implicit(%, x,0,10, y,0,10,
z,0,10),xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,zaxis=true,ztics_axis=true,zaxis_color=red,zaxis_type=solid,zaxis_width=1,xlabel

= "X-axis", ylabel = "Y-axis", zlabel = "Z-axis",user_preamble= "unset
border; set xtics nomirror; set ytics nomirror; set xyplane at 0");

f(z):=-x-3*y+6;
rhs(%);
draw3d(implicit(%, x,0,10, y,0,10,
z,0,10),xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,zaxis=true,ztics_axis=true,zaxis_color=red,zaxis_type=solid,zaxis_width=1,xlabel

= "X-axis", ylabel = "Y-axis", zlabel = "Z-axis",user_preamble= "unset
border; set xtics nomirror; set ytics nomirror; set xyplane at 0");

f(z):=x+y-4;
rhs(%);
draw3d(implicit(%, x,0,10, y,0,10,
z,0,10),xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,zaxis=true,ztics_axis=true,zaxis_color=red,zaxis_type=solid,zaxis_width=1,xlabel

= "X-axis", ylabel = "Y-axis", zlabel = "Z-axis",user_preamble= "unset
border; set xtics nomirror; set ytics nomirror; set xyplane at 0");

function: z=y-x^2;
function, z=4;
solve(%,y);
rhs(%[1]);
draw2d(explicit(%,x,-10,10),xrange=[0,10],yrange=[0,10],xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,xlabel="X-axis",ylabel="Y-axis",user_preamble="unset

border; set xtics nomirror; set ytics nomirror; set xyplane at 0; set
term png transparent; set out \"drawing.png\"");

f1: 0;
f2: y-x^2;
solve(f1=f2,y);
rhs(%[1]);
draw2d(explicit(%,x,-10,10),xrange=[-10,10],yrange=[-10,10],title=%,xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,xlabel="X-axis",ylabel="Y-axis",user_preamble="unset

border; set xtics nomirror; set ytics nomirror; set xyplane at 0; set
term png transparent; set out \"drawing.png\"");

f1: 1;
f2: y-x^2;
solve(f1=f2,y);
rhs(%[1]);
draw2d(explicit(%,x,-10,10),xrange=[-10,10],yrange=[-10,10],title=%,xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,xlabel="X-axis",ylabel="Y-axis",user_preamble="unset

border; set xtics nomirror; set ytics nomirror; set xyplane at 0; set
term png transparent; set out \"drawing.png\"");

f1: 4;
f2: y-x^2;
solve(f1=f2,y);
rhs(%[1]);
draw2d(explicit(%,x,-10,10),xrange=[-10,10],yrange=[-10,10],title=%,xaxis=true,xtics_axis=true,xaxis_color=red,xaxis_type=solid,xaxis_width=1,yaxis=true,ytics_axis=true,yaxis_color=red,yaxis_type=solid,yaxis_width=1,xlabel="X-axis",ylabel="Y-axis",user_preamble="unset

border; set xtics nomirror; set ytics nomirror; set xyplane at 0; set
term png transparent; set out \"drawing.png\"");

quit();

1. does somebody knows how to get the names of the axes automaticly on
the right places (end of the axes)
2. does somebody knows how to get the zeros to disapear
3. does somebody knows how to get fuction description to apear as title
in the plot
4. does somebody knows how to get fuction description to become the name
of the outputfile
5. does somebody knows how to get multiple fuctions in one plot with
diffrenc collors and a clear legend
6. does somebody knows how to get multiple windows with gnuplots so I
can run a batch and popup mutiple windows

I added some plot images in the attachment

-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawing-7.zip
Type: application/zip
Size: 22075 bytes
Desc: not available
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20080208/ff64f6be/attachment-0001.zip
```