sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.45k stars 482 forks source link

axes in jmol in the wrong place #3862

Open ef1c131e-1f03-4a63-96de-6d58a09f1051 opened 16 years ago

ef1c131e-1f03-4a63-96de-6d58a09f1051 commented 16 years ago

Example:

var('x')
var('y')
plot3d(cos(x) + sin(y), (x, -2,1), (y, -2,1), axes = True)

At least one axis is in the right location, the other two...

Translating coordinates into jmol seems to be difficult, so maybe this is the reason?

CC: @kcrisman

Component: graphics

Keywords: plot3d, axes

Issue created by migration from https://trac.sagemath.org/ticket/3862

jasongrout commented 15 years ago
comment:1

The fix is to put axes molecular in the jmol script. You can see the fix by right-clicking, selecting "console", and then entering the axes molecular command.

jasongrout commented 15 years ago
comment:3

The attached patch makes the axes centered at the origin.

jasongrout commented 15 years ago
comment:4

Assigning this to sage-3.3 will get mabshoff's attention, probably before he comes back on IRC :). Is this trivial enough to get in? It corrects a very annoying thing that bothers me when trying to teach calculus and graphing things in 3d.

jasongrout commented 15 years ago
comment:5

Okay, never mind. Carl Witty pointed out that this ticket deals with the Sage axes, not the jmol axes. I'm posting this patch up at #5229 and retracting my claim of a fix here.