Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency on Matplotlib #9

Closed
henry2004y opened this issue Apr 22, 2021 · 1 comment
Closed

Dependency on Matplotlib #9

henry2004y opened this issue Apr 22, 2021 · 1 comment

Comments

@henry2004y
Copy link
Owner

As of now, the plotting functionalities such as arrows rely on Matplotlib. Matplotlib only has fake 3D plots, and there are many difficulties such as creating arrows in 3D. We do not necessarily require PyPlot for plotting; instead, it would be better to have specific plotting utilities for certain packages, similar to the concept of recipe.

I really want to find a better 3D visualization tool as a replacement. Maybe it is also possible to export the field line data to real 3D engines such as ParaView, VisIt, Blender, etc.

@henry2004y
Copy link
Owner Author

In a previous implementation of add_arrow:

   if pybuiltin(:isinstance)(line, matplotlib.lines.Line2D)
      xdata, ydata = line.get_data()
   else
      @error "mplot3d does not support true 3D plotting!"
      xdata, ydata, zdata = line.get_data_3d()
   end

This requires PyCall, which causes issues on MacOS. Since this is not working anyway, I decide to remove the check for 3D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant