Changelog history¶
ProPlot v1.0.0 (2020-##-##)¶
This will be published when some major refactoring tasks are completed, and deprecation warnings will be removed. See GH#89, GH#109, GH#110, and GH#111.
ProPlot v0.7.0 (2020-##-##)¶
Deprecated
Deprecate
formatfunctions in favor of the axes-artistsetoverride (GH#89).Rename
widthandheightsubplotskeyword args tofigwidthandfigheight(GH####).Rename
aspect,axwidth, andaxheightkeyword args torefaspect,refwidth, andrefheight(GH####).Rename
rc[‘subplots.pad’]andrc[‘subplots.axpad’]torc[‘subplots.edgepad’]andrc[‘subplots.subplotpad’](GH####).
Features
All features are now implemented with individual setters, like in matplotlib, but we still encourage using the bulk
setmethod through documentation examples and by populating thesetdocstring (so valid arguments are no longer implicit).Users can now use
figurewithadd_subplotorsubplots(GH#110). This is a major improvement!GridSpecnow accepts physical units, rather than havingsubplotshandle the units (GH#110).Allow “hanging” twin x and y axes as members of the
EdgeStackcontainer. Arbitrarily many siblings are now permitted.Use
GeometrySolverfor calculating various automatic layout stuff instead of having 1000 hiddenFiguremethods (GH#110).Use
EdgeStackclass for handling stacks of colorbars, legends, and text (GH#110).
Internals
Assignments to
rc_configuratorare now validated, and the configurator is now a monkey patch ofrcParams(GH#109).Plotting wrapper features (e.g.
standardize_1d) are now implemented and documented on the individual methods themselves (e.g.plot; GH#111). This is much easier for new users.Handle all projection keyword arguments in
add_subplotinstead ofsubplots(GH#110).Panels, colorbars, and legends are now members of
EdgeStackstacks rather than getting inserted directly into the mainGridSpec(GH#110).
ProPlot v0.6.4 (2020-06-13)¶
Features
Change
autoformatfrom aFigurekeyword argument into therc.autoformatrc setting (@3a7e5a7c).Combine shading and lines when drawing on-the-fly legends with
indicate_errorshading using tuple offill_between,plothandles, and haveshadelabelandfadelabelinstead create separate entries only when passed (GH#187).
Bug fixes
Fix major issue where calling
legend()without any handles triggers error rather than using default handles (GH#188).Fix issue where on-the-fly colorbar labels were ignored (@a642eeed).
Stop overwriting existing axis labels when
autoformat=Trueand DataArrays or DataFrames passed to plotting command (@76c7c586).Support single-level contours with colormap colors (GH#182).
Support changing line width, line style, and color properties for barb, quiver, streamplot, matshow, spy, and hist2d plots (GH#177).
Use
rc[‘patch.linewidth’]for default bar edge width, stop setting default histogram plot linewidth to zero, and setrc[‘patch.linewidth’]to0.6to match proplot’s default line width for lines, axes edges, and hatches (GH#186).
ProPlot v0.6.3 (2020-06-02)¶
Bug fixes
Fix issue where import fails if cartopy is not installed (@e29d49e8).
ProPlot v0.6.2 (2020-06-02)¶
Deprecated
Remove
Figuresetters likeset_sharex, replace with read-only properties (@7b455008). These did not work and did not add critical functionality.
Features
Add
autoformatasstandardize_1dandstandardize_2dkeyword arg, so inheriting labels can be turned on/off for individual plots (@61258280).Share initial limits/scales/tickers from parent subplots when making new panels (@cf0d5d4e).
Permit negative “cuts” with
cutto expand the neutral zone of a diverging cmap (@94548d09).Add valid
formatarguments toaltxandalty, including[x|y]lim(@734f5940).Pass string
dual[x|y]arguments like'inverse'through theScaleconstructor (@413e1781).Add
'dms'locator and formatter, for degree-minute-second labels without cardinal direction indicators (@1b180cd2).Add “tau” formatter (@fc6a9752).
Restore default
rc[‘title.pad’]to matplotlib value, stop artificially bumping uprc[‘title.pad’]for “inner” titles (@7de1c1f4).Make custom formatters like
SciFormatterclasses rather than functions returningFuncFormatter(@7591f474).
Bug fixes
Various improvements to auto-figure sizing with Qt backend and when calling
print_figure(@db4e48d5, @82457347, @744d7d37).Suppress warning when
matplotlibrccontains non-style param (@4a0c7f10).Fix fatal
standardize_2derror whenautoformat=False(GH#181)Fix issue where
Colormap(..., alpha=alpha)made persistent changes to the original registered colormap (@cb24ea51).Prevent matplotlib deprecation warning by removing
set_smart_boundsdependency and improving axis scale transforms (@432576d8).Fix panel sharing issue in presence of stacked or multiple panels (@28eaf0ca).
Fix geographic feature toggling, zorder bugs (@acf0d5d4, @ea151b25).
Fix
histbug due tobar(..., width=width)now being relative to the x step size (@e32ed0bc).Fix bug where
savefigreceivesPathinstead of string (GH#176).
Documentation
Various improvements to website and API docstrings.
Document
proplot.figure.Figure.savemethod (@da25266a).Darker “dark mode” (@979c8188).
Prevent website from flashing light mode when changing pages (@75e4d6a1).
ProPlot v0.6.1 (2020-05-20)¶
Bug fixes
Fix issue where cartopy version checking fails if cartopy is not installed (@86cd50b8).
Fix issue where “tight” layout of geographic plots was broken in pre-v0.18 cartopy (@72cb93c6).
Fix issue where gridline coverage was incomplete in some zoomed-in projections (@458c6d7c).
Fix issue where basemap minor gridlines did not update when major gridlines were updated (@427326a7).
ProPlot v0.6.0 (2020-05-20)¶
Deprecated
Remove the
geoaxesandgeogridrc settings (GH#168). Gridline settings are now controlled withgrid.Remove the
lonstepandlatstepsettings – we now useLongitudeLocatorandLatitudeLocatorto select “nice” gridline locations even when zoomed in (GH#168)Rename
add_errorbarstoindicate_errorand rename various keyword args (GH#166, @d8c50a8d).Remove
'rgbcycle'setting (@6653b7f0).Deprecate support for “parametric” plots inside
plot, instead useparametric(@64210bce).Change
unitsunitskeyword argument to more naturaldest(@62903b48).Remove the public objects
normalizers,locators,formatters,cartopy_projs,basemap_kwargs,cmaps,colors, andfonts(GH#149).Drop support for
.xrgband.xrgbafiles (@4fa72b0c). Not sure if any online sources produce these kinds of files.Drop support for
.rgbafiles, but optionally read 4th opacity column from.rgband.txtfiles (@4fa72b0c).Stop reversing the
'Spectral'colormap when ProPlot is imported (@ce4ef6a0).Remove
'Blue0'SciVisColor colormap (@7cb4ce0f). It was odd man out in the table, and not even really perceptually uniform.Remove custom ProPlot cycles – these should be thought out much more carefully (@43f65d17).
Remove “crayola” colors and clean up the
register_colorsalgorithm (@8922d6de). Crayola color names less intuitive than XKCD.Use
'cmap_s'instead of'cmap_shifted'to quickly get a 180 degree-shifted colormap, similar to'cmap_r'(@da4ccb08).Rename
GrayCyclecolormap toMonoCycleto more accurately reflect colormap design origins (@d67e45bf).Rename
MidpointNormto more intuitiveDivergingNorm, and make “fair” color scaling the default behavior (@2f549c9).Rename
XYAxestoCartesianAxes,GeoAxestoCartopyAxes, andProjAxestoGeoAxes(@4a6a0e34).Rename
BinNormtoDiscreteNormand fix issues with diverging norm color scaling (@98a976f1).Rename
ColorDicttoColorDatabase,CmapDicttoColormapDatabase(@9d7fd3e0).Rename
concatenatetoappend,updatedtocopy,truncatedtotruncate, andpunchedtocut(@e1a08930). The old method names remain with a deprecation warning.
Features
Add
SigFigFormatter(GH#149, @da6105d2) andSciFormatter(GH#175, @c43f7f91) axis formatters.Use
_LonAxisand_LatAxisdummy axes with customLongitudeLocatorandLatitudeLocatorto control geographic gridlines (GH#168).Add
'dmslat'and'dmslon'as formatters for cartopy projections, along withdmsformatkeyword argument. This labels points with degrees/minutes/seconds when appropriate (GH#168).Support “minor” geographic gridlines with the
gridminorkeyword arg and existinggridminorsettings (GH#168). Default locator used for minor gridlines isAutoMinorLocator.Add
loninline,latinline, androtatelabelskeywords for controlling cartopy gridliner behavior (GH#168).Add
proplot.config.rc_configurator.saveandproplot.config.rc_configurator.from_filemethods (@e6dd8314).Increase default
rc[‘savefig.dpi’]to 1200, matching recommendations from academic journals (@c00e7314). Also add detailed discussion to user guide.No longer distinguish between “quick” settings and proplot’s “added” settings (@e6dd8314). Quick settings, added settings, and matplotlib settings can all have “children” so the distinction no longer makes sense.
Add opacity-preserving functions
to_rgbaandto_xyza, plusset_alphafor changing alpha channel of arbitrary color (@81c647da).Add to
set_alphathe ability to create an opacity gradation, rather than just an opacity for the entire colormap (@4a138ba4).Support passing colormap objects, not just names, to
show_cmapsandshow_cycles(@7f8ca59f).Add options to
indicate_errorfor adding shading to arbitrary plots (GH#166, @d8c50a8d). Also support automatic legend entries for shading and ensureindicate_errorpreserves metadata.Wrap
pcolorfastjust likepcolorandpcolormeshare wrapped (@50a262dd).Add
negposfeature tobar_wrapperand newrc.negcolorandrc.poscolorrc keyword arguments (@ab4d6746).Support
vlinesandhlinesflexible arguments and addnegposfeature (@1c53e947, @e42ee913).Change default line style for geographic gridlines from
':'to'-'and match style from primary gridlines (@f801852b).Support cartopy 0.18 locators, formatters, deprecations, and new labelling features (GH#158).
Support building a colormap and
DiscreteNorminsidescatter, just likecontourfandpcolormesh(GH#162).Add
rc[‘geogrid.labelpad’]andrc[‘geogrid.rotatelabels’]settings for cartopy gridline labels (GH#158).Support more
AutoFormatterfeatures onSimpleFormatter(@6decf962).Support drawing colorbars with descending levels (@10763146)
Add support for matplotlib stylesheets with
use_stylefunction andstylerc param (@edc6f3c9).Add
categorieskeyword arg toshow_cmapsandshow_cycles(@79be642d).Hide bad colormaps like
'jet'from theshow_cmapstable instead of deleting them outright, just like CSS4 colors (@ce4ef6a0).Draw
show_colorstable as single figure with category labels, similar toshow_cmaps(@c8ca2909).Make
'Grays'and'Greys'synonyms for the same ColorBrewer colormap (@da4ccb08).Permit drawing “outer” axes and figure legends without explicitly passing handles (@a69b48eb). Figure legends use the handles from all axes.
Add
to_listedandto_linear_segmentedmethods for handling conversions (GH#e1a08930).Permit merging mixed colormap types
LinearSegmentedColormapwithPerceptuallyUniformColormap(@972956b1).Include the
alphachannel when saving colormaps and cycles by default (@117e05f2).Permit 8-character hex strings with alpha channels when loading colormaps and color cycles from hex files (@381a84d4).
Publicly support “filling” axes with colorbars using
loc='fill'(@057c9895).Make
'Grays'colormap identical to'Greys'(@da4ccb08).Return both figure and axes in
show_functions; this gives users access to the axes and prevents drawing them twice in notebooks (@2f600bc9).Enable passing callables to
Formatterto create aFuncFormatterinstance.Support sampling
LinearSegmentedColormapintoListedColormapsinside ofColormaprather thanCycle(GH#84, @972956b1).
Bug fixes
Fix various issues with axis label sharing and axis sharing for twinned axes and panel axes (GH#164).
Permit modifying existing cartopy geographic features with successive calls to
format(GH#168).Fix issue drawing bar plots with datetime x axes (GH#156).
Fix issue where
AutoFormattertools were not locale-aware, i.e. use comma as decimal point sometimes (@c7636296).Fix issue where
AutoFormatternonzero-value correction algorithm was right for wrong reasons and could be wrong in rare circumstances (@c7636296).Fix issue where
matplotlib.style.useresets backend (@c8319104).Fix issue with colormaps with dots in name (@972956b1).
Fix logarithmic scale argument parsing deprecation (@6ed7dbc5).
Fix deprecation of direct access to
matplotlib.cm.cmap_din matplotlib >=3.2.0 (@a69c16da).Fix issues with string font sizes (@6121de03). Add hidden
_get_font_sizemethod to translate font size to numeric.Fix issue where passing actual projection instances generated with
Projtosubplotscould incorrectly pair cartopy projections with basemap axes and vice versa.Fix issue where could not draw colorbar from list of single-color
PathCollections, i.e. scatter plots (@e893900b).Fix issue where importing proplot in jupyter notebooks resets the default inline backend (@6121de03).
Improve axis label sharing algorithm (@6535b219).
Fix main axis label sharing bugs in presence of panels (@7b709db9).
Fix v0.4.0 regression where panel sharing no longer works (@289e5538).
Fix
AutoFormatterbug with values close to zero (GH#124, @9b7f89fd)Fix
AutoFormatterbug with small negative numbers (GH#117).Label cyclic Scientific colour maps as cyclic (@e10a3109).
Permit special colormap normalization and level scaling for colormap-colored contour plots, just like contourf (@054cceb5).
Internals
Major internal change: Move functions into smaller separate files to mimic how matplotlib library is divided up (GH#149).
Add
internalsfolder containing default proplot rc params, deprecation helper functions, and other internal tools (GH#149).Make colorbar axes instances of
CartesianAxes, just like panel axes.Rename ubiquitous
_notNonefunction to_not_noneand change to more sensible behavior.Turn some private
configfunctions into static methods (@6121de03).Remove “smart bounds” feature from
FuncScale(@9ac149ea).Clean up axes iterators (@c8a0768a).
Documentation
ProPlot v0.5.0 (2020-02-10)¶
Deprecated
Rename
abc.linewidthandtitle.linewidthtoborderwidth(@54eb4bee).Rename
text_wrapperlinewidthandinverttoborderwidthandborderinvert(@54eb4bee).
Features
Add back Fabio Crameri’s scientific colour maps (GH#116).
Permit both e.g.
locatorandxlocatoras keyword arguments toaltx, etc. (@57fab860).Permit descending
BinNormandLinearSegmentedNormlevels (GH#119).Permit overriding the font weight, style, and stretch in the
show_fontstable (@e8b9ee38).Permit hiding “unknown” colormaps and color cycles in the
show_cmapsandshow_cyclestables (@cb206f19).
Bug fixes
Fix issue where
show_cmapsandshow_cyclescolormap names were messed up (@13045599)Fix issue where
show_cmapsandshow_cyclesdid not return figure instance (@98209e87).Fix issue where user
valuespassed tocolorbar_wrapperwere sometimes ignored (@fd4f8d5f).Permit passing lists of colors to manually shade line contours and filled contours in
cmap_changer.Prevent formatting rightmost meridian label as
1e-10on cartopy map projections (@37fdd1eb).Support CF-time axes by fixing bug in
standardize_1dandstandardize_2d(GH#103, GH#121).Redirect to the “default” location when using
legend=Trueandcolorbar=Trueto generate on-the-fly legends and colorbars (@c2c5c58d). This feature was accidentally removed.Let
colorbar_wrapperaccept lists of colors (@e5f11591). This feature was accidentally removed.
Internals
Remove various unused keyword arguments (@33654a42).
Major improvements to the API controlling axes titles and a-b-c labels (@1ef7e65e).
Always use full names
left,right,top, andbottominstead ofl,r,b, andt, for clarity (@1ef7e65e).Improve
GrayCyclecolormap, is now much shorter and built from reflected FabioGrayCcolormaps (@5b2c7eb7).
ProPlot v0.4.3 (2020-01-21)¶
Deprecated
Remove
ipython_autoreload,ipython_autosave, andipython_matplotlib(GH#112, GH#113). Move inline backend configuration to a hidden method that gets called whenever therc_configuratoris initalized.
Features
Permit comments at the head of colormap and color files (@0ffc1d15).
Make
parametricmatchplotautoscaling behavior (@ecdcba82).
Internals
ProPlot v0.4.2 (2020-01-09)¶
Features
Add
familykeyword arg toshow_fonts(GH#106).Package the TeX Gyre font series with ProPlot (GH#106). Remove a couple other fonts.
Put the TeX Gyre fonts at the head of the serif, sans-serif, monospace, cursive, and fantasy
rcParamsfont family lists (GH#104, GH#106).
Bug fixes
Fix issues with Fira Math weights unrecognized by matplotlib (GH#106).
ProPlot v0.4.1 (2020-01-08)¶
Deprecation
Change the default
.proplotrcformat from YAML to the.matplotlibrcsyntax (GH#101).
Features
Comments (lines starting with
#) are now permitted in all RGB and HEX style colormap and cycle files (GH#100).Break down
show_cyclesbars into categories, just likeshow_cmaps(GH#100).
Bug fixes
Fix issue where
show_cmapsandshow_cyclesdraw empty axes (GH#100).Add back the default .proplorc file to docs (GH#101). To do this,
conf.pyauto-generates a file in_static.
Internals
Add
geogrid.color/linewidth/etcandgridminor.color/linewidth/etcprops as children ofgrid.color/linewidth/etc(GH#101).Various
rc_configuratorimprovements, remove outdated global variables (GH#101).Better error handling when loading colormap/cycle files, and calls to
ColormapandCyclenow raise errors while calls toregister_cmapsandregister_cyclesstill issue warnings (GH#100).
ProPlot v0.4.0 (2020-01-07)¶
Deprecated
Rename
basemap_defaultstobasemap_kwargsandcartopy_projstocartopy_names(@431a06ce).Remove
subplots.innerspace,subplots.titlespace,subplots.xlabspace, andsubplots.ylabspacespacing arguments, automatically calculate default non-tight spacing using_get_spacebased on current tick lengths, label sizes, etc.Remove redundant
use_fonts, usercParams['sans-serif']precedence instead (GH#95).dualxanddualyno longer accept “scale-spec” arguments. Must be a function, two functions, or an axis scale instance (GH#96).Remove
Axesshare[x|y],span[x|y], andalign[x|y]kwargs (GH#99). These settings are now always figure-wide.Rename
CyclesamplestoN, renameshow_colorsnbreaktonhues(GH#98).
Features
Add
from_filestatic methods (GH#98). You can now load files by passing a name toColormap.Add TeX Gyre Heros as open source Helvetica-alternative; this is the new default font. Add Fira Math as DejaVu Sans-alternative; has complete set of math characters (GH#95).
Add
xlinewidth,ylinewidth,xgridcolor,ygridcolorkeyword args toformat(GH#95).Add getters and setters for various
Figuresettings likeshare[x|y],span[x|y], andalign[x|y](GH#99).Let
twinx,twiny,altx, andaltyacceptformatkeyword args just likedualxanddualy(GH#99).Add
Figurefallback_to_cmkwarg. This is used byshow_fontsto show dummy glyphs to clearly illustrate when fonts are missing characters, but preserve graceful fallback for end user.Improve
Projconstructor function. It now acceptsProjectionandBasemapinstances, just like other constructor functions, and returns only the projection instance (GH#92).rc__getitem__always returns the setting. To get context block-restricted settings, you must explicitly passcontext=Truetoget,fill, orcategory(GH#91).
Bug fixes
Fix issues with
dualxanddualywith non-linear parent scales (GH#96).Ignore TTC fonts because they cannot be saved in EPS/PDF figures (GH#94 and GH#95).
Do not try to use Helvetica Neue because “thin” font style is read as regular (GH#94 and GH#95).
Documentation
Use the imperative mood for docstring summaries (GH#92).
Fix
show_cyclesbug (GH#90) and show cycles using colorbars rather than lines (GH#98).
Internals
Define
rcdefault values with inline dictionaries rather than with a default.proplotrcfile, change the auto-generated user.proplotrc(GH#91).Remove useless
panel_kwkeyword arg fromlegend_wrapperandcolorbar_wrapper(GH#91). Removewflush,hflush, andflushkeyword args fromsubplotsthat should have been removed long ago.
ProPlot v0.3.1 (2019-12-16)¶
Bug fixes
ProPlot v0.3.0 (2019-12-15)¶
Deprecated
Remove
'Moisture'colormap (@cf8952b1).
Features
Add
use_font, only sync Google Fonts fonts (GH#87).New
'DryWet'colormap is colorblind friendly (@0280e266).Permit shifting arbitrary colormaps by
180degrees by appending the name with'_shifted', just like'_r'(@e2e2b2c7).
Bug fixes
Add brute force workaround for saving colormaps with callable segmentdata (@8201a806).
Fix issue with latest versions of matplotlib where
%matplotlib inlinefails silently so the backend is not instantiated (@cc39dc56).Fix
shiftedwhenshiftis not180(@e2e2b2c7).Save the
cyclicandgammaattributes in JSON files too (@8201a806).
Documentation
Cleanup notebooks, especially the colormaps demo (e.g. @952d4cb3).
Internals
Change
clocktoperf_counter(GH#86).
ProPlot v0.2.7 (2019-12-09)¶
Bug fixes
Fix issue where
AutoFormatterlogarithmic scale points are incorrect (@9b164733).
Documentation
Improve Configuring ProPlot documentation (@9d50719b).
Internals
ProPlot v0.2.5 (2019-12-07)¶
Features
Much better
CutoffScalealgorithm, permit arbitrary cutoffs (GH#83).
ProPlot v0.2.4 (2019-12-07)¶
Deprecated
Rename
ColorCacheDicttoColorDict(@aee7d1be).Rename
colorstoColors(@aee7d1be)Remove
fonts_systemandfonts_proplot, renamecolordicttocolors, make top-level variables more robust (@861583f8).
Documentation
Params table for
show_fonts(@861583f8).
Internals
Improvements to
register_colors.
ProPlot v0.2.3 (2019-12-05)¶
Bug fixes
Fix issue with overlapping gridlines using monkey patches on gridliner instances (@8960ebdc).
Fix issue where auto colorbar labels are not applied when
globe=True(@ecb3c899).More sensible zorder for gridlines (@90d94e55).
Fix issue where customized super title settings are overridden when new axes are created (@35cb21f2).
Documentation
Organize ipython notebook documentation (@35cb21f2).
Internals
Major cleanup of the
colorbar_wrappersource code, handle minor ticks using the builtin matplotlib API just like major ticks (@b9976220).
ProPlot v0.2.2 (2019-12-04)¶
Deprecated
Rename
axes_gridtosubplot_grid(@ac14e9dd).
Bug fixes
Fix shared x and y axis bugs (@ac14e9dd).
Documentation
Make notebook examples PEP8 compliant (@97f5ffd4). Much more readable now.
ProPlot v0.2.1 (2019-12-02)¶
Deprecated
Rename
autoreload_setup,autosave_setup, andmatplotlib_setuptoipython_autoreload,ipython_autosave, andipython_matplotlib, respectively (@84e80c1e).
ProPlot v0.2.0 (2019-12-02)¶
Deprecated
Remove the
nbsetuprc setting in favor of separateautosave,autoreload, andmatplotlibsettings for triggering the respective%magic commands. (@3a622887;nbsetupis still accepted but no longer documented).Rename the
formatrc setting in favor of theinlinefmtsetting (@3a622887;formatis still accepted but no longer documented).Rename
FlexibleGridSpecandFlexibleSubplotSpectoGridSpecandSubplotSpec(@3a622887; until GH#110 is merged it is impossible to use these manually, so this won’t bother anyone).
Features
Support manual resizing for all backends, including
osxandqt(@3a622887).
Bug fixes
Disable automatic resizing for the
nbAgginteractive inline backend. Found no suitable workaround (@3a622887).
Internals
Organize the
rcdocumentation and the default.proplotrcfile (@3a622887).Rename
rcParamsCustomtorcParamsLong(@3a622887; this is inaccessible to the user).When calling
fig.canvas.print_figure()on a stale figure, callfig.canvas.draw()first. May be overkill forsavefigbut critical for correctly displaying already-drawn notebook figures.
ProPlot v0.1.0 (2019-12-01)¶
Internals
Include
flake8in Travis CI testing (@8743b857).Enforce source code PEP8 compliance (@78da51a7).
Use pre-commit for all future commits (@e14f6809).
Implement tight layout stuff with canvas monkey patches (@67221d10). ProPlot now works for arbitrary backends, not just inline and qt.
Documentation
Various RTD bugfixes (e.g. @37633a4c).