Test eCookbook Integration
This commit is contained in:
parent
43ea63bb7c
commit
05fd8ca891
109 changed files with 2092 additions and 0 deletions
20
docs/eCookbook/matplotlib/matplotlib-single-plot.md
Normal file
20
docs/eCookbook/matplotlib/matplotlib-single-plot.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
## Single Matplotlib Plot
|
||||
|
||||
This is your basic simple Matplotlib example
|
||||
|
||||
What's nice about this demo is that it shows all of the parts required and each section is tiny
|
||||
|
||||
You will paste your Matplotlib code at the top. The important thing to do is leave your drawing in a variable named `fig`
|
||||
|
||||
There is a "helper" function in the middle.
|
||||
|
||||
The bottom portion of the file is your GUI. There is only 1 line of code needed to take your Matplotlib drawing and place it into your GUI window. It is the call to `draw_figure`.
|
||||
|
||||
This is how your window looks on Windows:
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
<iframe src='https://trinket.io/embed/pygame/4c1ecb316a?start=result' width='100%' height='600' frameborder='0' marginwidth='0' marginheight='0' allowfullscreen></iframe>
|
Loading…
Add table
Add a link
Reference in a new issue