Skip to content

Commit 0610fc1

Browse files
committed
Completed plot refactor
1 parent 35cbedd commit 0610fc1

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

huracan/engine.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ def plot_T_S(self,
736736
plot_label=plot_label,
737737
show=show,
738738
# Further customization
739-
y_tick_ndecimals=2,
739+
tick_label_decimals_y=2,
740740
**further_custom)
741741

742742
def plot_p_V(self,
@@ -760,7 +760,7 @@ def plot_p_V(self,
760760
plot_label=plot_label,
761761
show=show,
762762
# Further customization
763-
y_tick_ndecimals=2,
763+
tick_label_decimals_y=2,
764764
**further_custom)
765765

766766
def plot_H_p(self,
@@ -784,7 +784,7 @@ def plot_H_p(self,
784784
plot_label=plot_label,
785785
show=show,
786786
# Further customization
787-
y_tick_ndecimals=2,
787+
tick_label_decimals_y=2,
788788
**further_custom)
789789

790790
def plot_T_p(self,
@@ -808,7 +808,7 @@ def plot_T_p(self,
808808
plot_label=plot_label,
809809
show=show,
810810
# Further customization
811-
x_tick_ndecimals=2,
811+
tick_label_decimals_x=2,
812812
**further_custom)
813813

814814
def plot_cycle_graph(self,
@@ -1121,7 +1121,7 @@ def plot(self,
11211121
}
11221122

11231123
if colorblind:
1124-
m = markers(hollow=True)
1124+
m = markers()
11251125
marker = m[self.streams.index(stream)]
11261126
subplot_defaults = {**subplot_defaults, **marker}
11271127

huracan/utils.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@ def __getitem__(self, item):
115115

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

120+
# FIXME: hollow markers disappear
120121
if self.hollow:
121122
if self.plotter == 'scatter':
122-
marker['mfc'] = 'none'
123+
marker['mfc'] = 'none'
123124
else:
124-
marker['facecolors'] = 'none'
125+
marker['scatter_facecolors'] = 'none'
125126

126127
return marker

0 commit comments

Comments
 (0)