Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulation Experiment view: make it possible to customise a graph panel and have it serialised to / retrieved from a SED-ML file #1426

Closed
59 tasks done
agarny opened this issue Sep 26, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@agarny
Copy link
Contributor

agarny commented Sep 26, 2017

We can now change the colour (and other things) of a graph (see issue #591). So, it would be nice to be able to change the background colour of a graph panel, as well as of its grid lines.

Things to do:

  • Have our current "Graphs" panel to rename automatically to "Graph Panel" or "Graphs", depending on which one is active.
  • Have a way to toggle between graph panel specific settings and graphs specific settings.
  • Have some context menu items for “Graph Panel Settings” and “Graphs Settings" to open our new “Graph Panel” panel and select the graph panel settings or graphs settings, respectively.
  • Remove the "Logarithmic X Axis" and "Logarithmic Y Axis" menu items from a graph panel's context menu.
  • In the graph panel side, allow the customisation of the:
    • Background colour.
    • Font size.
    • Foreground colour.
    • Grid lines:
      • Style.
      • Width.
      • Colour.
    • Point coordinates:
      • Style.
      • Width.
      • Colour.
      • Font colour.
    • Title.
    • X axis:
      • Logarithmic scale.
      • Title.
    • Y axis:
      • Logarithmic scale.
      • Title.
    • Zoom region:
      • Style.
      • Width.
      • Colour.
      • Font colour.
      • Filled.
      • Fill colour.
  • Make sure that the expanded/collapsed state of all graph panel editor's sections remains the same when switching to another graph panel or file.
  • Add SED-ML support for the new settings:
    • Background colour.
    • Font size.
    • Foreground colour.
    • Grid lines:
      • Style.
      • Width.
      • Colour.
    • Point coordinates:
      • Style.
      • Width.
      • Colour.
      • Font colour.
    • Title.
    • X axis:
      • Logarithmic scale.
      • Title.
    • Y axis:
      • Logarithmic scale.
      • Title.
    • Zoom region:
      • Style.
      • Width.
      • Colour.
      • Font colour.
      • Filled.
      • Fill colour.
@agarny agarny added the Feature label Sep 26, 2017
@agarny agarny added this to the 0.6 milestone Sep 26, 2017
@agarny agarny self-assigned this Sep 26, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 25, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 25, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 25, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 25, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 25, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 25, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 26, 2017
…src/simulationexperimentviewinformationgraphpanelandgraphswidget.* (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 26, 2017
…src/simulationexperimentviewinformationgraphpanelandgraphswidget.* (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 27, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 27, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 28, 2017
…phs specific property editor (opencor#1426).

Indeed, refactoring the Graphs property editor was proving to be too
tedious, not to mention that this meant several instances of our
context menu, etc. one for each graph panel. So, not optimal at all.
agarny added a commit to agarny/opencor that referenced this issue Oct 28, 2017
…raph panel property editor from our (existing) graphs property editor (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 28, 2017
…l property editor from our graphs property editor (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
…l property editor from our graphs property editor (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
…l property editor from our graphs property editor (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
…l property editor from our graphs property editor (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
… graphs settings from a graph panel’s context menu (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 29, 2017
…rithmic Y Axis" menu items from a graph panel's context menu (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Oct 30, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 30, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 30, 2017
agarny added a commit to agarny/opencor that referenced this issue Oct 31, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
…e of all graph panel editor's sections remains the same when switching to another graph panel or file (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
…tion (opencor#1426).

I thought I could get away with putting that information as annotation,
but SED-ML explicitly requires it to be at the curve level…
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 10, 2017
…operly initialised when opening a SED-ML file / COMBINE archive (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Nov 12, 2017
…e correct height when adding a graph panel or opening a SED-ML file with several graph panels (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Nov 12, 2017
@agarny agarny changed the title Simulation Experiment view: make it possible to change the background colour of a graph panel Simulation Experiment view: make it possible to customise a graph panel Nov 12, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 13, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 13, 2017
…ed (opencor#1426).

Indeed, if we had one graph panel, added a title to its Y axis, added
another graph panel and also wanted to add a title to its Y axis, then
only the Y axis title of the first graph panel would be visible. That
is, until we would, say, pan the second graph panel.

This was because the QwtScaleWidget for the Y axis of the second graph
panel didn’t have its internals updated. To ‘fix’ this, we have to
subclass QwtScaleWidget, so that we could call its layoutScale() method…
agarny added a commit to agarny/opencor that referenced this issue Nov 14, 2017
…r#1426).

Indeed, until now, we were removing all the graph panels, but the first
one. This was not only arbitrary, but if the graph panel had been
customised (e.g., a title had been set), then it means that it would
still be there. So, now, we add a graph panel (since we need at least
one graph panel) and then really remove all the other graph panels.
agarny added a commit to agarny/opencor that referenced this issue Nov 14, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 14, 2017
…h is an integer (and not a double) greater than zero (opencor#1426).
agarny added a commit to agarny/opencor that referenced this issue Nov 14, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 14, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 15, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 15, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 15, 2017
@agarny agarny closed this as completed in 2020fe0 Nov 15, 2017
@agarny agarny changed the title Simulation Experiment view: make it possible to customise a graph panel Simulation Experiment view: make it possible to customise a graph panel and have it serialised to / retrieved from a SED-ML file Nov 15, 2017
agarny added a commit to agarny/opencor that referenced this issue Nov 27, 2017
…cor#1426).

This had been modified in commit
9c3eec2 to ensure proper alignment
when adding a graph panel when another had a Y title. However, this was
unnecessarily realigning things and therefore slowing things down (a
lot). So, back to what we originally had. As for adding a graph panel
when another has a Y title, it looks like our various changes (as part
of issues opencor#1426 and opencor#1171) indirectly addresses it since everything is
still fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant