VPython 5.71 adds log-log and semilog plots to graphs, and the ability
to offset the graph origin.
LOG GRAPHS
When creating a gdisplay, you can specify logarithmic plots by
specifying logx=True and/or logy=True. All values must be positive,
representing logarithms of numbers between infinitely small (logarithm
approaches 0) and infinitely large; that is, numbers such as 0.01,
0.1, 1, 10, 100, etc.
GRAPH OFFSETS
If you specify xmin or ymin to be greater than zero, or xmax or ymax
to be less than zero, the crossing point (origin) of the x and y axes
will no longer be at (0,0), and the graphing will be offset. If you
offset the origin of the graph, you must specify xmax to be greater
than xmin, and/or ymax to be greater than ymin.
BUG FIXES
Thanks to a diagnosis by David Scherer, random dots around the text of
label objects (Windows and Linus) are (nearly) eliminated. A bug that
occasionally prevented a graph from displaying has been fixed.
Bruce Sherwood
|