Exemple #1
0
bbox_props = dict(boxstyle="rarrow,pad=0.3", fc="cyan", ec="b", lw=2)

#   Camera lens rays
ax.add_patch(Polygon(np.array([[24,-9],[33,-47.5],[80,-47.5],[25,-7.2]]),closed=True,ls='dashed',fc='#CCE6FF'))
ax.add_patch(Polygon(np.array([[73.9481,-7.45807],[20,-47.5],[67,-47.5],[76.1553,-9.29489]]),closed=True,ls='dashed',fc='#CCE6FF'))
ax.add_patch(Polygon(np.array([[24,-9],[33,-47.5],[80,-47.5],[25,-7.2]]),closed=True,ls='dashed',fc='none', ec='black'))
ax.add_patch(Polygon(np.array([[73.9481,-7.45807],[20,-47.5],[67,-47.5],[76.1553,-9.29489]]),closed=True,ls='dashed',fc='none', ec='black'))


#   Cameras
c1 = Rectangle((20, -10.0), 10, 20, angle=40.0, fc='k')
c2 = Rectangle((80, -10.0), 20, 10, angle=50.0, fc='k')
c1l = Rectangle((23, -10.0), 5, 2, angle=40.0, fc='k')
c2l = Rectangle((77, -10), 2, 5, angle=50.0, fc='k')

a = Rectangle.get_patch_transform(c1)
print Rectangle.get_path(c1)
ax.add_patch(c1)
ax.add_patch(c1l)

ax.add_patch(c2)
ax.add_patch(c2l)




#   Supports
ax.add_patch(Rectangle((20, -50.), 15, 2.5, fc='White', ec='Black'))#, hatch='\\'))
ax.add_patch(Rectangle((65, -50.), 15, 2.5, fc='White', ec='Black'))#, hatch='\\'))
#   bottom left
ax.add_patch(Rectangle((20, -55), 26.5, 5, fc='White', ec='Black'))#, hatch='/'))