Skip to content

Commit

Permalink
FIX - matploblib 3.5 compatibility
Browse files Browse the repository at this point in the history
Removes the now unsupported keywords from
the setting of rcParams
  • Loading branch information
achim1 committed Mar 22, 2022
1 parent 55c4333 commit c4d3540
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion hepbasestack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Miscellaneous tools
"""

__version__ = '0.1.3'
__version__ = '0.1.4'
__all__ = ["visual","itools","logger", "colors", "layout"]

import resource
Expand Down
28 changes: 14 additions & 14 deletions hepbasestack/visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def set_style_default():
"""
default_style = {'_internal.classic_mode': False,
'agg.path.chunksize': 0,
'animation.avconv_args': [],
'animation.avconv_path': 'avconv',
#'animation.avconv_args': [],
#'animation.avconv_path': 'avconv',
'animation.bitrate': -1,
'animation.codec': 'h264',
'animation.convert_args': [],
Expand All @@ -64,7 +64,7 @@ def set_style_default():
'animation.ffmpeg_path': 'ffmpeg',
'animation.frame_format': 'png',
'animation.html': 'none',
'animation.html_args': [],
#'animation.html_args': [],
'animation.writer': 'ffmpeg',
'axes.autolimit_mode': 'data',
'axes.axisbelow': 'line',
Expand Down Expand Up @@ -216,7 +216,7 @@ def set_style_default():
'image.origin': 'upper',
'image.resample': True,
'interactive': False,
'keymap.all_axes': ['a'],
#'keymap.all_axes': ['a'],
'keymap.back': ['left', 'c', 'backspace', 'MouseButton.BACK'],
'keymap.copy': ['ctrl+c', 'cmd+c'],
'keymap.forward': ['right', 'v', 'MouseButton.FORWARD'],
Expand Down Expand Up @@ -272,7 +272,7 @@ def set_style_default():
'mathtext.bf': 'sans:bold',
'mathtext.cal': 'cursive',
'mathtext.default': 'it',
'mathtext.fallback_to_cm': True,
#'mathtext.fallback_to_cm': True,
'mathtext.fontset': 'dejavusans',
'mathtext.it': 'sans:italic',
'mathtext.rm': 'sans',
Expand Down Expand Up @@ -308,7 +308,7 @@ def set_style_default():
'savefig.facecolor': 'w',
'savefig.format': 'png',
#'savefig.frameon': True,
'savefig.jpeg_quality': 95,
#'savefig.jpeg_quality': 95,
'savefig.orientation': 'portrait',
'savefig.pad_inches': 0.1,
'savefig.transparent': False,
Expand All @@ -322,7 +322,7 @@ def set_style_default():
'text.hinting': 'auto',
'text.hinting_factor': 8,
'text.latex.preamble': '',
'text.latex.preview': False,
#'text.latex.preview': False,
#'text.latex.unicode': True,
'text.usetex': True,
'timezone': 'UTC',
Expand Down Expand Up @@ -398,8 +398,8 @@ def set_style_present():
"""
present_style = {'_internal.classic_mode': False,
'agg.path.chunksize': 0,
'animation.avconv_args': [],
'animation.avconv_path': 'avconv',
#'animation.avconv_args': [],
#'animation.avconv_path': 'avconv',
'animation.bitrate': -1,
'animation.codec': 'h264',
'animation.convert_args': [],
Expand All @@ -409,7 +409,7 @@ def set_style_present():
'animation.ffmpeg_path': 'ffmpeg',
'animation.frame_format': 'png',
'animation.html': 'none',
'animation.html_args': [],
#'animation.html_args': [],
'animation.writer': 'ffmpeg',
'axes.autolimit_mode': 'data',
'axes.axisbelow': 'line',
Expand Down Expand Up @@ -561,7 +561,7 @@ def set_style_present():
'image.origin': 'upper',
'image.resample': True,
'interactive': False,
'keymap.all_axes': ['a'],
#'keymap.all_axes': ['a'],
'keymap.back': ['left', 'c', 'backspace', 'MouseButton.BACK'],
'keymap.copy': ['ctrl+c', 'cmd+c'],
'keymap.forward': ['right', 'v', 'MouseButton.FORWARD'],
Expand Down Expand Up @@ -617,7 +617,7 @@ def set_style_present():
'mathtext.bf': 'sans:bold',
'mathtext.cal': 'cursive',
'mathtext.default': 'it',
'mathtext.fallback_to_cm': True,
#'mathtext.fallback_to_cm': True,
'mathtext.fontset': 'dejavusans',
'mathtext.it': 'sans:italic',
'mathtext.rm': 'sans',
Expand Down Expand Up @@ -653,7 +653,7 @@ def set_style_present():
'savefig.facecolor': 'w',
'savefig.format': 'png',
#'savefig.frameon': True,
'savefig.jpeg_quality': 95,
#'savefig.jpeg_quality': 95,
'savefig.orientation': 'portrait',
'savefig.pad_inches': 0.1,
'savefig.transparent': False,
Expand All @@ -667,7 +667,7 @@ def set_style_present():
'text.hinting': 'auto',
'text.hinting_factor': 8,
'text.latex.preamble': '',
'text.latex.preview': False,
#'text.latex.preview': False,
#'text.latex.unicode': True,
'text.usetex': True,
'timezone': 'UTC',
Expand Down

0 comments on commit c4d3540

Please sign in to comment.