Changeset 36b3154 in sasmodels for explore


Ignore:
Timestamp:
Oct 23, 2017 12:46:53 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
20fe0cd
Parents:
59e537a
Message:

hack around axis('square') issue for matplotlib in explore/jitter.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/jitter.py

    r59e537a r36b3154  
    457457    #ax = plt.subplot(gs[0], projection='3d') 
    458458    ax = plt.axes([0.0, 0.2, 1.0, 0.8], projection='3d') 
    459     ax.axis('square') 
     459    try:  # CRUFT: not all versions of matplotlib accept 'square' 3d projection 
     460        ax.axis('square') 
     461    except Exception: 
     462        pass 
    460463 
    461464    axcolor = 'lightgoldenrodyellow' 
Note: See TracChangeset for help on using the changeset viewer.