GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — Plot frame by kushalkolar · Pull Request #313 · fastplotlib/fastplotlib Conversation
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
0d6b766 to
88f33c3
Compare
|
This is working now with Now onto Qt output context and toolbar. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Everything works on my end, I tested every combination with ipywidgets, sidecar/no sidecar, Qt, and with ImageWidget. Right now the toolbar implementations are quite repetitive, we can make that nicer in a future PR after we have some time to think about it. Someone must have made a common interface between ipywidgets and Qt that we can use. qt.mp4 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| self.output = (frame.canvas, *add_widgets) | ||
|
|
||
| if make_toolbar: # make toolbar and stack canvas, toolbar, add_widgets | ||
| self.toolbar = IpywidgetToolBar(frame) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
what if ImageWidget? where is logic for if plot type is imagewidget?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
ImageWidget just uses the Gridplot context:
def show(self, toolbar: bool = True, sidecar: bool = False, sidecar_kwargs: dict = None): """ Show the widget Returns ------- OutputContext """ if self.gridplot.canvas.__class__.__name__ == "JupyterWgpuCanvas": self._image_widget_toolbar = IpywidgetImageWidgetToolbar(self) elif self.gridplot.canvas.__class__.__name__ == "QWgpuCanvas": self._image_widget_toolbar = QToolbarImageWidget(self) return self.gridplot.show( toolbar=toolbar, sidecar=sidecar, sidecar_kwargs=sidecar_kwargs, add_widgets=[self._image_widget_toolbar] )
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
did you update the requirements file? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Another thing I see is that when I have two subplots in an imagewidget and the camera y_scales are opposite that when I change click between subplots the flip button is not changing in accordance with the camera y_scale...just stays the same |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
No dependency changes here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
In ipywidgets or Qt? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ipwidgets |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
not even if someone only wants qt? they would need to have pyqt6 installed right? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Qt land is a bit complicated, so they will have to install Qt themselves separately. We can do toggles later, because to do this properly we need to give users the option of PySide etc and decide how broad we want this support. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I think now I see what you mean, it is wonky! So this is because in ImageWidget all cameras are under one controller. I did not decide how to deal with flipping when controllers are diff. What I will do is if the flip button is clicked, it will flip the camera for the current subplot but also any camera that has the same controller (similar to what I did for panzoom and maintain_aspect). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
makesidecar=False the default?
make a PlotFrame class for Toolbar and sidecar functionality
Setting the coordinate reference system
There was an error while loading. Please reload this page.