Frage
Ist es möglich, 3D-Scatterplots zu schaffen, in Salbei ?
Mit dem Scatterplot I mittlere Graph wie folgt aus:
Lösung
Auf jeden Fall. Wenn Sie eine Liste von Tupeln haben, die Ihre Punkte darstellen, so etwas wie:
point_list=[(0.,1.,2.), (2.,2.,3.)]
point3d(point_list)
, die die beiden Punkte in point_list gegeben werden Plotten Sie Achsenbeschriftungen mit Standard-Salbei Plotten Optionen hinzufügen können.
Andere Tipps
You can, as indicated in the accepted answer. To produce exactly that graph (http://matplotlib.org/examples/mplot3d/scatter3d_demo.html) from Sage you can use matplotlib: copy the code of the example in a cell (I'm assuming you are using the notebook) and substitute the last line
plt.show()
with
plt.savefig("")
plt.close("all")
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow