Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This is because when you write r.plot(), the plot is performed in terms of the default chart on E, which is that of cylindrical coordinates in your case. Accordingly, the axes of the plot are /ρ, /ϕ and /z. I guess you'd rather want the plot to be performed in a Cartesian frame instead, with the axes /x, /y and /z. You should then specify it by means of the keyword argument chart:

r.plot(chart=E.cartesian_coordinates()

For a better sampling, you may use

r.plot(chart=E.cartesian_coordinates(), number_values=7)
click to hide/show revision 2
No.2 Revision

This is because when you write r.plot(), the plot is performed in terms of the default chart on E, which is that of cylindrical coordinates in your case. Accordingly, the axes of the plot are /ρ, /ϕ and /z. I guess you'd rather want the plot to be performed in a Cartesian frame instead, with the axes /x, /y and /z. You should then specify it by means of the keyword argument chart:

r.plot(chart=E.cartesian_coordinates()
r.plot(chart=E.cartesian_coordinates())

For a better sampling, you may use

r.plot(chart=E.cartesian_coordinates(), number_values=7)