Closed yumengch closed 3 years ago
Sorry, about the close/reopen. I was just testing copy-pasting git diffs, and clicked the wrong button. But at least I learnt that this syntax works well, so you can also open Issues for discussions.
```diff
output from git diff
```
However, I would think that a PR is almost always better.
Wonderful! This is exactly what was needed! Even freshfig
works almost perfectly still!
This is my attempt to tackle issue #43.
I feel that creating a pull request is an easier way to show the difference between codes as it is not trivial. If you have a better practice for doing this, let me know.
I hope I understand your needs correctly, here are some changes:
name
of the liveplotter as thenum
arguments of thefig = plt.figure(num)
instead of integers (See matplotlib doc here ). This treatment leads to automatic assignment offig.number
and thestr
type name can be accessed viafig.get_label()
(An example use in dapper is here ).fignum
in LP definitions in dapper (and I hope I find all).assimilate
calls, we cannot specify selected liveplots viafignum
but have to specify via thename
of the figures, e.g.sliding_diagnostics
. I didn't change much in the functionparse_figlist
as I think the option with a list of liveplotter names was already implemented.HMM
andliveplotting.py
in the hope that the use of liveplotters can be clearer in the doc.tests/test_plotting.py
.Hope this pull request is helpful.