GraphingLib 1.7.0.dev Release Notes#
New Features#
Heatmap.from_pdf classmethod#
Added Heatmap.from_pdf, which creates a Heatmap by rasterizing a page of a PDF file. Requires the optional graphinglib[pdf] extra.
(pr-687)
New xkcd figure style#
Added a built-in xkcd figure style replicating matplotlib’s plt.xkcd() hand-drawn look. Install the “xkcd” or “Humor Sans” font for the full effect, or without it, text falls back to a comic-style system font when one is available.
(pr-689)
Improvements#
Clearer and more consistent error handling#
GraphingLib now raises a small hierarchy of specific, descriptive exceptions instead of a mix of generic errors. Every exception derives from the new GraphingLibError base, and new classes such as InvalidParameterError, InvalidParameterTypeError, IncompatibleArgumentsError, InvalidOperationError, StyleNotFoundError, MissingOptionalDependencyError and PlottingError make failures easier to identify and catch.
(pr-695)
Bug Fixes#
Fix Heatmap ignoring a single axis range#
Fixed a bug where Heatmap would silently ignore x_axis_range or y_axis_range unless both were specified.
(pr-684)
Fix incorrect x/y snapping for nearest/previous/next interpolation#
Fixed a bug where Curve and Scatter methods that locate a point on the curve (get_coordinates_at_x, create_point_at_x, get_coordinates_at_y, create_points_at_y) would snap y value but not x value when using the “nearest”, “previous”, or “next” interpolation methods.
(pr-686)
Bugfixes for Histogram and the fit classes#
Fixed several bugs in Histogram and the fit classes: Histogram now draws its PDF mean and standard deviation lines on the correct axes in multi-panel figures, computes correct bin_centers for non-uniform bin edges, and keeps bin_heights/bin_edges/bin_centers consistent with the current normalize value. FitFromSquareRoot.cov_matrix and .standard_deviation no longer crash with a RecursionError, str() on a FitFromFunction no longer raises NotImplementedError, get_Rsquared now returns a well-defined value for constant data, and FitFromGaussian/FitFromFOTF fits are now bounded to keep sigma/tau positive instead of silently producing NaN curves.
(pr-688)
Surplus intersection points fall back to default styles#
When Curve.create_intersection_points is given a per-point style list (labels, face_colors, edge_colors, marker_sizes, marker_styles, edge_widths or alphas) shorter than the number of intersection points, the surplus points now fall back to their defaults (no label, and the figure_style default for each style) instead of being assigned the entire list as a single value.
(pr-694)
Contributors#
A total of 1 people contributed to this release.
Merged Pull Requests#
A total of 7 pull requests were merged for this release.