- 07 Feb, 2018 2 commits
-
-
Yori Fournier authored
needed to creat a private update function to update the keywords eventhough the figure is not yet synchronized and the fig.client attribute is still None.
-
Philipp Gast authored
-
- 06 Feb, 2018 1 commit
-
-
Philipp Gast authored
-
- 16 Sep, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
not yet clean, need to see if pack/unpackRawdata are needed for server and myFig-client need to unify message format: STATUS/RECEIPT/SIGNAL: 'HEADER-fix-size MSG-fix-size STATUS-fix-size' INSTRUCTIONS/DATA: 'HEADER-fix-size MSG-fix-size CONTENT-var-size' the fixed size are configurable. if user need longer msg he can overwrite class with constants. The default pack/unpack of myAxes are just eval of the string. Can be overloaded by user.
-
- 03 Sep, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
add the fig-level pack in server.py add the fig-level unpack in MyFig_client.py
-
- 02 Sep, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
that fig.datas is less than 1024 bits and that all data type are evaluable
-
- 31 Aug, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
and treat the data such that win = MyWin(fig) will works.
-
- 27 Aug, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
FormatRawData not yet programmed
-
- 26 Aug, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
But not yet MyAxes and MyFig because need the server version
-
- 18 Jun, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
suppress the reinitialisation of fig.aliases in declareAliases
-
- 30 May, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
If the Axes is of type MyAxes but deriving from Another class It won't pass the isinstance(ax, MyAxes) test However it will pass issubclass(ax.__class__, MyAxes) But if ax is derived from MyAxes from another namespace: ax.__class__ = some_namespace.MyAxes MyAxes = some_other_namespace.MyAxes It won't pass neither... Therefore I commented this test before I find a solution
-
- 06 Apr, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
size of the figure.
-
- 24 Mar, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
-
- 06 Mar, 2017 1 commit
-
-
Philipp Gast authored
-
- 03 Mar, 2017 5 commits
-
-
Yori 'AGy' Fournier authored
now can use in mytool module usage() or usage(<fct-name'>)
-
Philipp Gast authored
(this time with changes)
-
Philipp Gast authored
-
Philipp Gast authored
-
Philipp Gast authored
MyAxes.update() allows to write the MyFig.update() shorter and clearer. I vote to make use of that.
-
- 02 Mar, 2017 2 commits
-
-
Philipp Gast authored
-
Yori 'AGy' Fournier authored
- Now the figure calls the update function of axes This is cleaner and object oriented. def update(self, **kwargs): for ax in self.get_axes(): ax.update(**kwargs)
-
- 01 Mar, 2017 5 commits
-
-
Philipp Gast authored
BUG: two axes figure (test.figure3) shows only one axes
-
Yori 'AGy' Fournier authored
- all tests go through - Now if data does not exists set to None
-
Philipp Gast authored
-
Philipp Gast authored
-
Philipp Gast authored
-
- 28 Feb, 2017 1 commit
-
-
Philipp Gast authored
-
- 27 Feb, 2017 1 commit
-
-
Philipp Gast authored
-
- 23 Feb, 2017 1 commit
-
-
Philipp Gast authored
give either iterable or single instance to set_rawdata of figure
-
- 03 Feb, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
It is now possible to interactively design plots from text files. The file is going to be read and executes part of it as the place of key function of FigDesign and AxDesign Both of these classes are simulating behavior in an interactive environment. The result can be saved under the form of classes with the tool savePlot.
-
- 31 Jan, 2017 2 commits
-
-
Yori 'AGy' Fournier authored
add a check status after MyFig::plot such that is the ax can not format the data it return false and the false status is given to plot.
-
Yori 'AGy' Fournier authored
now you can create a figure interactively, modify it and save it into a file thanks to fig.print2file(<file-name>, as_seen = True) without as_seen keyword the print2file function will recall fig.plot and by this mean clean the axes and redraw them as defined in the FigClass
-
- 30 Jan, 2017 4 commits
-
-
Yori 'AGy' Fournier authored
I renamed defineKeywords as declareKeywords better name for what is does. I also add a debugging alt for the Axes such that if you get >> "SomeAxes could not be formatted" you can set debug to True and get the real error message.
-
Yori 'AGy' Fournier authored
just one more comment to make a clear distiction between updating the keywords and deleting them.
-
Yori 'AGy' Fournier authored
i renamed _userAttributesKeys to _attributesToUpdateKeys because this is what they are. the attribute in this list are updated by the function update noyhing eslse. i also renamed rdict as rest, for two reasons, first the python standars suggests to avoid types in names (unnecessary information) and 'r' was not telling anything. rest seems to be appropriate since it represent the rest of keywords from kwargs. I also add a second condition for printing debug info in update: the rest dict0 should not be empty, again would be too much info.
-
Philipp Gast authored
-
- 23 Jan, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
When the rawdata were set in MyFig::set_rawdata I forgot to add self.formatted = False before self.formatRawData and therefore if self.reformat was set to false the data were not reformatted... also add some debug info.
-
- 22 Jan, 2017 2 commits
-
-
Yori 'AGy' Fournier authored
-
Yori 'AGy' Fournier authored
I now separates between MyFig and MyFig_base. MyFig_base can be used by overwritting the __init__ function and the plot function, very much like in v1.0.0, you just don't need update, remark the axes should be created in __init__ not in plot. The MyFig class however is smarter, and the user just need to overwrite defineKeywords and addAxes, yes, you don't need __init__! as their names suggests in defineKeywords you should update self.keywords, in addAxes you should add the objects MyAxes. Now the figure object reads a tuple of data object as argument (not optional anymore) each index for the axes. This behaviour can be overwritten in the function MyFig::formatRawdata, and MyFig::set_rawdata. Remark now the MyFig_base keywords became attributes: self.keywords['fignum'] -> self.fignum...
-
- 20 Jan, 2017 1 commit
-
-
Yori 'AGy' Fournier authored
mypltlib is now restructured with tests in test. I also changed MyFig and MyAxes such that they can not be used alone. This is done such that now as seen in test figTest1 a figure consists only of an __init__ function. Nothing else is required. I also changed the refresh function of MyWins such that the figure does not destroy it axis but redraw them. So now the axes are create only ones. This has the side effect that when the window is resized the axes ratio is not respected anymore.
-