Open zimmermann6 opened 7 years ago
Obvious question: do you have surf
installed on your system?
Obvious question: do you have surf installed on your system?
it seems no. I thought Sage was self-content...
Paul
now with surf installed, the last command opens a new window where it is written:
root_finder=d_chain_bisection;epsilon=0.0000000001;iterations=20000;
width=500; height=500; set_size; do_background=yes; background_red=255; background_green=255; background_blue=255;
rot_x=0.14; rot_y=-0.3;
surface=
x^2*y*z-18
;
draw_surface;
color_file_format = jpg;
filename = "/tmp/surf.jpg";
save_color_image;
Can you reproduce this? Is it really the expected behaviour?
Paul
Replying to @zimmermann6:
Obvious question: do you have surf installed on your system?
it seems no. I thought Sage was self-content...
Well, I never realized that Sage required surf
for plotting ideals.
The doc of plot?
is funny by the way:
If you somehow manage to install surf, perhaps you can use
this function to implicitly plot the real zero locus of this
ideal (if principal).
If you type (with J the ideal in the description):
J0=ideal(J.0)
J0.plot?
then you get a more specific help:
Signature: J0.plot(*args, **kwds)
Docstring:
Plot the real zero locus of this principal ideal.
INPUT:
* "self" - a principal ideal in 2 variables
* "algorithm" - set this to 'surf' if you want 'surf' to
plot the ideal (default: None)
* "*args" - optional tuples "(variable, minimum, maximum)"
for plotting dimensions
* "**kwds" - optional keyword arguments passed on to
"implicit_plot"
but none of algorithm=None
and algorithm='surf'
do work.
sorry I retract part of what I said in the description: the example in the book differs. However the failure is still there. If plot is not able to deal with 3D ideals, I believe the error message should be improved.
the following example which was working with Sage 5.9 (cf Figure 9.1 page 193 of http://sagebook.gforge.inria.fr/) is no longer working with Sage 7.5.1:
With Sage 7.5.1 I get:
This is critical for the translation in german and in english of the book.
Component: graphics
Issue created by migration from https://trac.sagemath.org/ticket/22590