[plotter] perso rcParams is now contextualized within the Plotter
This commit is contained in:
+1
-5
@@ -173,10 +173,6 @@ class Plotter(Aggregator, BaseProcessor):
|
|||||||
# Define rules
|
# Define rules
|
||||||
self.def_rules()
|
self.def_rules()
|
||||||
|
|
||||||
# Load rcParams
|
|
||||||
if self.params.rcParams is not None:
|
|
||||||
plt.rcParams.update(params.rcParams)
|
|
||||||
|
|
||||||
# Generate astrophysix's simulations object
|
# Generate astrophysix's simulations object
|
||||||
self.gen_simus()
|
self.gen_simus()
|
||||||
|
|
||||||
@@ -269,7 +265,7 @@ class Plotter(Aggregator, BaseProcessor):
|
|||||||
"""
|
"""
|
||||||
Open storage and figure if needed before processing a rule
|
Open storage and figure if needed before processing a rule
|
||||||
"""
|
"""
|
||||||
|
with plt.rc_context(self.params.rcParams):
|
||||||
# Set full name according to argument
|
# Set full name according to argument
|
||||||
if arg is not None:
|
if arg is not None:
|
||||||
name_full = (
|
name_full = (
|
||||||
|
|||||||
Reference in New Issue
Block a user