Skip to content

Commit 49134ce

Browse files
committed
DOC: last minute changes
1 parent 1710625 commit 49134ce

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

REDAME.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ for windows
2323
All of the examples should be run from IPython as
2424

2525
%run -i NN-FILE.py
26+
27+
and sholud each be self-contained.

notes.org

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
- if you have used the pan / zoom tools or the 'g', 'l', 'k',
44
... keys in mpl, you have used the mpl event framework
55
- show demo of keys / pan / zoom
6+
- the updating coordinates
67
- this is the first time I have given this, thanks for being guinea pigs!
7-
- has always been in mpl
8+
- events has always been in mpl
89
- think about this work with an eye towards embedding in your own GUI
9-
- $ conda create -p /tmp/demo -c conda-forge -c conda-forge/label/rc matplotlib pandas pytables ipython
1010

1111
** There is at least a book of material here
1212

@@ -25,20 +25,27 @@ https://www.packtpub.com/application-development/interactive-applications-using-
2525

2626
- http://matplotlib.org/users/event_handling.html
2727
- this material will probably be folded into this page
28+
- http://matplotlib.org/examples/event_handling/index.html
29+
- http://matplotlib.org/api/widgets_api.html
30+
31+
** install
32+
33+
$ conda create -p /tmp/demo -c conda-forge -c conda-forge/label/rc 'matplotlib>1.6' pandas pytables ipython
2834

2935
* 00-explore
3036
- 'hello world' of event processing
3137
- layers of mpl
3238
- figure / axes / artist vs canvas distinction
3339
- figure vs figure manager vs canvas
3440
- canvas.mpl_connect
35-
- canval.mpl_disconnect
41+
- canvas.mpl_disconnect
3642
- Three 'classes' of events
3743
- active
3844
- ['button_press_event', 'button_release_event', 'scroll_event',
3945
'key_press_event', 'key_release_event', 'pick_event']
4046
- passive
41-
- ['motion_notify_event', 'figure_enter_event', 'axes_enter_event', 'axes_leave_event']
47+
- ['motion_notify_event', 'figure_enter_event',
48+
'axes_enter_event', 'axes_leave_event']
4249
- internal
4350
- ['draw_event', 'resize_event']
4451
- important if you are doing blitting (which is it's own tutorial)
@@ -59,13 +66,14 @@ https://www.packtpub.com/application-development/interactive-applications-using-
5966

6067
* 02-event filtering
6168
- use an object with several methods, hook them all up to events
62-
- look at the values in the events to decide what to do
69+
- look at the values in the events to decide what to do
6370
- hold an artist as state and mutate on user input
6471

6572
* interlude about data
6673
- data sets from NOAA, historical hourly weather reports
6774
- only extracting the air temperature, a LOT more information in the reports
68-
- raw data extraction code in 99-collect_data.py, but processed data from BWI in repo
75+
- raw data extraction code in 99-collect_data.py, but processed data
76+
from BWI in repo
6977
- ~10 years of ~hourly air temperature readings
7078
#+BEGIN_SRC python
7179
from pddc_helpers import load_bwi_data
@@ -90,7 +98,8 @@ bwi = load_bwi_data()
9098

9199
* 04-custom_plotting
92100
- mpl's 'native' API is low level
93-
- write the API you need for your data
101+
- write the API you need for your data (inside of which you bring
102+
your data to the API)
94103
- i-haz-a-soap-box
95104

96105
* 05-interactive_temperature

0 commit comments

Comments
 (0)