Changeset 06aaa75d in sasview for src/sas/sascalc/calculator


Ignore:
Timestamp:
Mar 4, 2016 7:11:05 AM (9 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
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
Message:

Removed sascalc→sasgui dependence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/calculator/sas_gen.py

    rd7bb526 r06aaa75d  
    10401040        Test code 
    10411041    """ 
    1042     from sas.sasgui.plottools.arrow3d import Arrow3D 
     1042    from mpl_toolkits.mplot3d import Axes3D 
    10431043    current_dir = os.path.abspath(os.path.curdir) 
    10441044    print current_dir 
     
    10601060    import matplotlib.pyplot as plt 
    10611061    fig = plt.figure() 
    1062     ax = fig.gca(projection='3d') 
     1062    ax = Axes3D(fig) 
    10631063    ax.plot(output.pos_x, output.pos_y, output.pos_z, '.', c="g", 
    10641064            alpha=0.7, markeredgecolor='gray', rasterized=True) 
     
    10811081    color_z = numpy.fabs(unit_z2 * 0.8) 
    10821082    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) 
    10871083    plt.show() 
    10881084 
Note: See TracChangeset for help on using the changeset viewer.