Skip to content

Commit

Permalink
Completed plot refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezrivera committed May 4, 2024
1 parent 35cbedd commit 0610fc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions huracan/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def plot_T_S(self,
plot_label=plot_label,
show=show,
# Further customization
y_tick_ndecimals=2,
tick_label_decimals_y=2,
**further_custom)

def plot_p_V(self,
Expand All @@ -760,7 +760,7 @@ def plot_p_V(self,
plot_label=plot_label,
show=show,
# Further customization
y_tick_ndecimals=2,
tick_label_decimals_y=2,
**further_custom)

def plot_H_p(self,
Expand All @@ -784,7 +784,7 @@ def plot_H_p(self,
plot_label=plot_label,
show=show,
# Further customization
y_tick_ndecimals=2,
tick_label_decimals_y=2,
**further_custom)

def plot_T_p(self,
Expand All @@ -808,7 +808,7 @@ def plot_T_p(self,
plot_label=plot_label,
show=show,
# Further customization
x_tick_ndecimals=2,
tick_label_decimals_x=2,
**further_custom)

def plot_cycle_graph(self,
Expand Down Expand Up @@ -1121,7 +1121,7 @@ def plot(self,
}

if colorblind:
m = markers(hollow=True)
m = markers()
marker = m[self.streams.index(stream)]
subplot_defaults = {**subplot_defaults, **marker}

Expand Down
7 changes: 4 additions & 3 deletions huracan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ def __getitem__(self, item):

m = {k: markers.__dict__[k] for k in markers.__dict__.keys() if (self.hollow and k not in self.incompatible) or not self.hollow}
keys = [k for k in m.keys() if not re.match(special, k)]
marker = {'marker': m[keys[item]]}
marker = {'scatter_marker': m[keys[item]]}

# FIXME: hollow markers disappear
if self.hollow:
if self.plotter == 'scatter':
marker['mfc'] = 'none'
marker['mfc'] = 'none'
else:
marker['facecolors'] = 'none'
marker['scatter_facecolors'] = 'none'

return marker

0 comments on commit 0610fc1

Please sign in to comment.