Skip to content

Commit 57f9f8f

Browse files
fix space around axes to view axes labels
fix space around axes to view axes labels.
1 parent 9df1b45 commit 57f9f8f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mplfinance/plotting.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,14 @@ def plot( data, **kwargs ):
207207
if config['volume']:
208208
if volumes is None:
209209
raise ValueError('Request for volume, but NO volume data.')
210-
ax1 = fig.add_axes( [0.05, 0.25, 0.9, 0.7] )
211-
ax2 = fig.add_axes( [0.05, 0.05, 0.9, 0.2], sharex=ax1 )
210+
ax1 = fig.add_axes( [0.15, 0.38, 0.70, 0.50] )
211+
ax2 = fig.add_axes( [0.15, 0.18, 0.70, 0.20], sharex=ax1 )
212212
else:
213-
ax1 = fig.add_axes( [0.05, 0.05, 0.9, 0.9] )
213+
ax1 = fig.add_axes( [0.15, 0.18, 0.70, 0.70] )
214214
ax2 = None
215215

216216
avg_days_between_points = (dates[-1] - dates[0]) / float(len(dates))
217217

218-
219218
# Default logic for 'no_xgaps': True for intraday data spanning 2 or more days, else False
220219
# Caller provided 'no_xgaps' kwarg OVERRIDES default logic.
221220

0 commit comments

Comments
 (0)