- Timestamp:
- Mar 4, 2016 5:11:05 AM (9 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 4ee041f
- Parents:
- d85c194
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/calculator/sas_gen.py
rd7bb526 r06aaa75d 1040 1040 Test code 1041 1041 """ 1042 from sas.sasgui.plottools.arrow3d import Arrow3D1042 from mpl_toolkits.mplot3d import Axes3D 1043 1043 current_dir = os.path.abspath(os.path.curdir) 1044 1044 print current_dir … … 1060 1060 import matplotlib.pyplot as plt 1061 1061 fig = plt.figure() 1062 ax = fig.gca(projection='3d')1062 ax = Axes3D(fig) 1063 1063 ax.plot(output.pos_x, output.pos_y, output.pos_z, '.', c="g", 1064 1064 alpha=0.7, markeredgecolor='gray', rasterized=True) … … 1081 1081 color_z = numpy.fabs(unit_z2 * 0.8) 1082 1082 colors = numpy.column_stack((color_x, color_y, color_z)) 1083 a = Arrow3D(None, x_arrow, y_arrow, z_arrow, colors,1084 mutation_scale=10, lw=1, arrowstyle="->",1085 color="y", alpha=0.5)1086 ax.add_artist(a)1087 1083 plt.show() 1088 1084
Note: See TracChangeset
for help on using the changeset viewer.