0

How do I move candles further apart in matplotlib? I currently have code that produces the following: picture

The boxes and labels shown are squashed together and difficult to read.

My plot function is as follows:

box1 = ax1.boxplot(to_build, positions=np.arange(len(to_build)) - 0.2, labels=labelList, notch=False,
                           patch_artist=True,
                           widths=0.3, medianprops=dict(color='white'),
                           boxprops=dict(facecolor=c1, color=c1),
                           capprops=dict(color=c1),
                           whiskerprops=dict(color=c1),
                           flierprops=dict(color=c1, markeredgecolor=c1),
                           )

How can I change it to increase spacing between plotted points?

Community
  • 1
  • 1
Bruh
  • 25
  • 6
  • You could set a smaller font for the tick labels. See e.g. [this post](https://stackoverflow.com/questions/6390393/matplotlib-make-tick-labels-font-size-smaller) – JohanC Apr 25 '20 at 12:03
  • Have you checked out the solution here: https://stackoverflow.com/questions/44863375/how-to-change-spacing-between-ticks-in-matplotlib? – Hayden Eastwood Apr 25 '20 at 15:21

0 Answers0