I can only say that Sage isn't properly geared to plot non-smooth functions. If you have such a piecewise-linear graph, it's probably better to split it into polyhedral pieces and plot them.

On Wed, Sep 25, 2024 at 3:42 PM Fernando Gouvea <fqgou...@colby.edu> wrote: > Recently I was trying to get SageMath to plot something: > > plot3d(floor(min(x,y)),(x,1,7),(y,1,7)) > > The result looks like this: > > I checked, and it does seem that both floor(min(7,1)) and floor(min(1,7)) > are equal to 1, as they should be. But that's not what the plot shows. Any > explanations of what is happening? > > Thanks, > > Fernando > > > -- > ============================================================= > Fernando Q. Gouvea http://www.colby.edu/~fqgouvea > Carter Professor of Mathematics > Dept. of Mathematics > Colby College > 5836 Mayflower Hill > Waterville, ME 04901 > > Time is nature's way of making sure that everything doesn't happen at once. > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/91c0ba72-2526-4f17-a744-fcfe8d8befdf%40colby.edu > <https://groups.google.com/d/msgid/sage-support/91c0ba72-2526-4f17-a744-fcfe8d8befdf%40colby.edu?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CAAWYfq30Rkef%3DuGYB-oG01MRPtk7ZTX_68-ESYjnKgeh8iegYw%40mail.gmail.com.