![]() histogram ( data, 50 ) # get the corners of the rectangles for the histogram left = np. subplots () # histogram our data with numpy data = np. ![]() This example makes a histogram - its more work to set up the vertex arrays at the outset, but it should be much faster for large numbers of objects """ import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.path as path fig, ax = plt. Now that we have them, we can draw collections of regularly shaped objects with homogeous properties more efficiently with a PathCollection. The technique of using lots of Rectangle instances, or the faster method of using Polåollections, were implemented before we had proper paths with moveto/lineto, closepoly etc in mpl. """ This example shows how to use a path patch to draw a bunch of rectangles.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |