Is it possible to control the join and cap styles of lines and
patches? Is there an example for this? I'm trying to add a scale
marker to a plot, but lines have rounded ends by default, so I'm
currently changing these manually in Inkscape to miter join and butt
cap. Here is a minimal example, based on the code here:
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredSizeBar
def add_sizebar(ax, size):
asb = AnchoredSizeBar(ax.transData,
size,
str(size),
loc=8,
pad=0.1, borderpad=0.5, sep=5,
frameon=False)
ax.add_artist(asb)
add_sizebar(plt.gca(), 0.5)
plt.draw()
plt.show()
What I'd like is a 2pt wide line with butt-style cap ends,
thanks,
Gary
------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages,
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users