I read here: http://wiki.wxpython.org/Getting%20Started#Windows_or_Frames.3F that there are advantages to arranging content within a frame using Sizers instead of panels; sizers are more flexible. However many of the matplotlib examples with wxpython use panels anyway. Typically they difine a panel for the plot. I have designed a GUI using Sizers, and wish to put my matplotlib canvas into one of the Sizers without the apparent restrictions of a panel. Does anyone know how this is done, or where I can find a very simple example? Many thanks, Andrew.
Matplotlib in wx.boxsizer instead of panels
253 Views Asked by Andrewb At
1
There are 1 best solutions below
Related Questions in MATPLOTLIB
- Str object is not callable in pandas
- How to throw a charged particle in a electric vector field?
- How are negative errorbar bounds transformed, when log axis scaling is applied before constructing a Seaborn lineplot?
- The kernel appears to have died. It will restart automatically. whenever i try to run the plt.imshow() and plt.show() function in jupyter notebook
- OpenGL Error [Python [OpenGL] [OpenAI Gym]
- Remove gaps between subplots_mosaic in matplotlib
- Matplotlib Fails to Update Axis Limits with ipywidgets in Jupyter Lab
- Low efficiency when plotting a large amount of contours on a single axis in python with matplotlib
- Why is countplot showing single value
- Matplotlib: Legend for marker and color in a scatterplot
- Contour plot projection not showing properly in matplotlib 3d plotting
- matplotlib sort barh by values
- loading variables from a python script in matlab
- cmap and color bar being compressed from the assigned range
- How can I position a pie chart within another plot according to x, y coordinates?
Related Questions in WXPYTHON
- wx only execute on mouseover, not during GUI initialization
- FindString() method for wx ListBox not working for me
- How do I create a wx.Bitmap with a transparent background?
- Unable to identify which events a wx widget emits
- Wxpython Sizer position
- wxpython alpha colors overwrite previous drawing
- wx.YieldIfNeeded slows down when called in long running search in wxStyledTextCtrl doc which is scrolled down
- How to create trustworthy desktop applications that do not conflict with antivirus software
- How to prevent UI freeze in wxpython when running long task with concurrent future
- Drag and Drop Attachments from Outlook to Windows Filesystem
- Is it possible to create a function to increment or decrease a variable by one, without looping or recursion(wxpython)
- WX Bitmap from buffer, confusing invalid buffer size error
- How do I implement single click editing on cell in a table in wxPython?
- How do I get arrows in a wxPython Ultimate List Control to scroll correctly?
- Plotting two graphs in real time with wx and matplotlib
Related Questions in SIZER
- Wxpython Sizer position
- Howto determine the size of a text in the current font in wxTextCtrl
- wxwidget Set window size to fit screen
- what is the purpose of sizer.Add (Python wx) in this code?
- wxWidgets add widgets (in a sizer) from bottom left instead of top left?
- wxPython sizer troubleshoot, How can I detach?
- Error: The method 'init' isn't defined for the class 'SizerUtil'
- wx - how to create two notebooks side by side with different sizes?
- How to change wx.sbSizer label color and size in python?
- In wxPython, how can I use sizers to left- and right-justify statictext beneath a slider?
- How to make flutter app UI responsive for different screen sizes [Flutter]?
- why sizer dealing with padding value as a hight?
- Having a sizer problem; why does my wxPython window layout look fine when sizing larger, but break when sizing smaller?
- wxTextCtrl resizing issue
- How to Correctly Remove All elements(including wxsizers and wxwindows) from inside a wxBoxSizer(wxVERTICAL)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am not familiar with matplotlib but I happened to come across this previous SO question about embedding matplotlib canvases.
From what I can tell the canvas is actually inside a sizer but that sizer is then wrapped inside a panel. The advantage of this is that you encapsulate all the relevant variables and keep them together. I.e. the canvas and all the relevant variables are kept as a single item that can be called. This is good if you plan to have multiple canvases or if your canvas will be only one part of a more complex GUI.
That said, I see no reason you NEED to put it panel. If your application is very simple (i.e. it will consist of JUST the canvas and nothing else) you could place it in you frame's sizer (see that previous question's answer and change
wx.Paneltowx.Frame).