Commit ab0f7538 authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

Correct the initialisation of aliases

suppress the reinitialisation of fig.aliases in declareAliases
parent cbc0ad75
......@@ -89,7 +89,7 @@ class MyFig(Figure):
def __init__(self, rawdata, *args, **kwargs):
# for the update function
self._attributesToUpdateKeys = ['fignum', 'reformat', 'debug', 'formatted']
self._attributesToUpdateKeys = ['fignum', 'reformat', 'debug', 'formatted', 'aliases']
# initialise the attribute default values and remove them from kwargs
self.fignum = kwargs.pop('fignum', -1) # need to be hard coded for interactive mode
......@@ -140,7 +140,7 @@ class MyFig(Figure):
# For each axes update the keywords
for ax in self.get_axes():
forax={}
forax = {}
for keyword in kwargs.keys():
......@@ -162,7 +162,7 @@ class MyFig(Figure):
# Then eventually all collected Keywords are updated in one go
if (forax) :
if self.debug:
if self.debug:
print (DBUG+' fig.update ', ax, 'keywords: ', forax)
ax.update(**forax)
......@@ -170,7 +170,7 @@ class MyFig(Figure):
# DECLARE ALIASES -------------------------------------------------
def declareAliases(self):
self.aliases = {}
pass
# ADD AXES ---------------------------------------------------------
def addAxes(self, *arg, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment