Matplotlib: how to change line's width without changing its length

I am trying to display a series of events that take place sequentially. The default linewidth (linewidth=1.) makes the plots difficult to see. However, if I increase the linewidth, the length of the lines also changes. Is there anyway to increase the width of the lines only?

e.g.

import matplotlib.pyplot as plt

fig, ax = plt.subplots(1,2, figsize=(15,6))
ax[0].set_title('linewidth = 1.0', fontsize=12)
ax[0].plot([3.0, 3.0], [55924, 56926], linewidth=1.)
ax[0].plot([3.0, 3.0], [57167, 58225], linewidth=1.)

ax[1].set_title('linewidth = 30.0', fontsize=12)
ax[1].plot([3.0, 3.0], [55924, 56926], linewidth=30.)
ax[1].plot([3.0, 3.0], [57167, 58225], linewidth=30.)

enter image description here



from Recent Questions - Stack Overflow https://ift.tt/3sgnEd6
https://ift.tt/3kpTjX3

Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)