Releases: matplotlib/matplotview
Releases · matplotlib/matplotview
Minor Update Release
Adds PEP-8 compliance to matplotlview, and confirms support against newer
matplotlib versions (v3.8.2).
First Non-Beta Release
Release 1.0.0 of matplotview! Includes the following changes:
- Addition of
matplotview.stop_viewing
function for terminating views without digging into internal APIs - Simplified public facing interface (just 3 functions!).
- Brand new documentation and example gallery at: https://matplotview.readthedocs.io/en/latest/
Multi-View Support and Major API Changes
This release includes the following changes:
- Several getter and setter methods were removed for view axes, and replaced with the new
view_specifications
property. - Support added for constructing views that view multiple other axes at once, as demonstrated by the code snippet below:
import matplotlib.pyplot as plt
from matplotview import view
fig, (ax1, ax2, ax3) = plt.subplots(1, 3)
ax1.add_patch(plt.Circle((1, 1), 1.5, ec="black", fc=(0, 0, 1, 0.5)))
ax3.add_patch(plt.Circle((3, 1), 1.5, ec="black", fc=(1, 0, 0, 0.5)))
for ax in (ax1, ax3):
ax.set_aspect(1)
ax.relim()
ax.autoscale_view()
# Axes 2 is a view of 1 and 3
view(view(ax2, ax1), ax3)
ax2.set_aspect(1)
ax2.set_xlim(-0.5, 4.5)
ax2.set_ylim(-0.5, 2.5)
fig.show()
Bug Fix Release
Line scaling falls back gracefully when a projection doesn't transform the unit box correctly, fixing rendering for geographic projections.
Map Projection and Pickle Support
This update contains the following changes:
- Artist rendering has been modified to handle scenarios where the axes returns a invalid data clip box, allowing views to be used with map based axes and projections.
- Plots including views can now be pickled and unpickled without error.
- Views now have getter and setter methods for the additional attributes they add to the axes.
General Improvements and Bug Fixes
Recursive Rendering and Filtering Support
Major Bug Fix
Artists of a view will now be rendered in the correct order, rendering based on zorder rather then always being rendered under the artists of the axes being viewed.
Initial Release
Initial Release
Introduces a simple API for creating views.
- Ability to create views of other axes using the
view
method. - Additional convenience method
inset_zoom_axes
added, for creating inset axes that are views of the parent axes