Skip to content

Commit 46a4ef5

Browse files
committed
Fixed issue with connection_flows=True in slice_plot()/layer_plot() caused error using matplotlib 1.5+.
Matplotlib tightened validation of pivot in quiver, 'start' is no longer allowed, which was wrong and default of 'tail' was used. See matplotlib/matplotlib#3951
1 parent e347eba commit 46a4ef5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mulgrids.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ def plot_flows(self, plt, X, Y, U, V, flow_variable_name, flow_unit,
20592059
else: flow_scale = 1.e-9
20602060
flow_scale_factor = flow_scale * 10.
20612061
if connection_flows:
2062-
pivot = 'start'
2062+
pivot = 'tail'
20632063
key_str = flow_variable_name + ' = ' + str(flow_scale) + ' ' + flow_unit
20642064
else:
20652065
pivot = 'middle'

0 commit comments

Comments
 (0)