Ignore:
Timestamp:
12/17/12 16:28:37 (11 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (bug fixes)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: unit tests of sdplot

Put in Release Notes: No

Module(s): asapplotter and sdplot

Description:

Fixed a bug which caused failure of plots by user defined linestyles.
Made sure data is plotted on mpl plotter (not on ASAP plotter) by
plotpointing and plotazel.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r2697 r2699  
    5656        if isinstance(c,str) and len(c) > 0:
    5757            self.colormap = c.split()
    58 
    59         self.lsalias = {"line":  '-', #[1,0],
    60                         "dashdot": '-.',  #[4,2,1,2],
    61                         "dashed" : '--',  #[4,2,4,2],
    62                         "dotted" : ':',  #[1,2],
     58        # line styles need to be set as a list of numbers to use set_dashes
     59        self.lsalias = {"line":  [1,0],
     60                        "dashdot": [4,2,1,2],
     61                        "dashed" : [4,2,4,2],
     62                        "dotted" : [1,2],
    6363                        "dashdotdot": [4,2,1,2,1,2],
    6464                        "dashdashdot": [4,2,4,2,1,2]
     
    9898        self.axes.clear()
    9999        self.color = 0
     100        self.linestyle = 0
    100101        self.lines = []
    101102        self.subplots[self.i]['lines'] = self.lines
Note: See TracChangeset for help on using the changeset viewer.