Now I’m on to another question, which is “how do I see my plot”? The example (which I am running using Shift-Enter in Atom) pops up in my Atom Plots pane, but when I try to run my program, I get errors. Thanks also for the tips on composing messages. Finally, I prefer to use comma (",") to separate vector elements you have used semicolon (" ").Observe that I used the camera option in plot – sometimes it is necessary to do this to rotate the coordinate system to get a good view of the object.Such import is less “dangerous” in Julia than in, say, Python, because of Julia’s multiple dispatch idea. I import Plots by statement using Plots – the advantage is that then you don’t need to specify the package name. That is fine if you do so, you need to use the package name when issuing the command, i.e., ot. You import Plots using statement import Plots.I don’t know why in any way, I use pyplot as back-end to Plots. Your plot using plotlyjs back-end doesn’t really show any plot in my browser.However, pyplot seems to have slightly better support of the Plots API, and also has the best \LaTeX support. In my view, gr gives the purest/prettiest lines, etc. The gr back-end is the default for Plots. In your case of using Plots, you use the plotlyjs back-end.An alternative is to use pyplot as a back-end to the Plots API – as I’ve done. In your first case, you use raw PyPlot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |