Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add tutorial file for Glade 3.16-GTK3.10-Python 3 #3088

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

Closed
wants to merge 62 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
251b89f
first commit
tobias47n9e May 26, 2014
0d216e6
python3 shebang
tobias47n9e May 28, 2014
5b1eb12
figures
tobias47n9e Jun 4, 2014
3694d33
user guide structure
tobias47n9e Jun 5, 2014
ed7c044
mouse tracking tutorial for glade and some more changes
tobias47n9e Jun 7, 2014
ebe261e
reworded ui_introduction.rst
tobias47n9e Jun 13, 2014
bb2766c
Merge remote-tracking branch 'upstream/master'
tobias47n9e Jun 24, 2014
4fc9fa4
removing tutorial files
tobias47n9e Jun 25, 2014
40b41e2
fixed wrong diff?
tobias47n9e Jun 25, 2014
2025d3a
small error in comment
rahiel May 26, 2014
9d7afc7
Fix bug in setting y-axis minimum in histograms with weights and log …
May 26, 2014
fc5d9e1
fix argument checks in axis/base.margins
andreasWallner May 20, 2014
9ae56df
removed unnecessary image checks in test_axes.test_margins
andreasWallner May 20, 2014
e036000
added missing cleanup on testbench function
andreasWallner May 21, 2014
f716ffc
Fix for bug #3029.
razius May 16, 2014
411bf08
doc changed
fariza Mar 26, 2014
2c229fe
doc string mod
fariza May 5, 2014
e532782
Image: handle images with zero columns or rows.
efiring Jun 1, 2014
7535299
Streamplot: clean up handling of masks, eliminate warning in test.
efiring Jun 1, 2014
e5abe80
BUG: in Spine.set_position(), preserve most Axis info.
efiring Jun 1, 2014
33346c7
Use autolim kwarg in add_collection to prevent duplication of effort.
efiring Jun 1, 2014
977d718
Adds check that rgb sequence is of length 3
GregoryAshton May 28, 2014
5c163a0
Improves check of arg range
GregoryAshton May 28, 2014
bc38dca
Removes unnecessary float conversions
GregoryAshton May 29, 2014
6e9f34f
Fixed small bug in Appender class in docstring module.
cgringmuth Jun 2, 2014
f420bfe
DOC : clarified doc of add_artist
tacaswell Jun 3, 2014
f55f196
bug fix: check the type of the 'key' of the two array 'r1' and 'r2'
montefra Jun 3, 2014
af4cf43
Error message written in proper English
montefra Jun 3, 2014
bef70dc
New animation example inspired from the Joy Division's Unchained Love…
rougier May 31, 2014
351bc73
DOC : fixed urls
tacaswell Jun 5, 2014
6a014d0
typo fix
stahlous Jun 7, 2014
57f3fd9
DOC : add documentation to Polygon methods
tacaswell Jun 7, 2014
d7b3364
errorbar: fmt kwarg default is ''; deprecate None, use 'none' instead
efiring Jun 1, 2014
798001d
DOC : added aspect to pyplot.axes doc
tacaswell Jun 7, 2014
ba69531
DOC : Added link to axes.Axes.set_aspect
tacaswell Jun 8, 2014
d505cc4
DOC : added inherited-members to Axes autodoc
tacaswell Jun 8, 2014
bd02df0
DOC : Added docstrings to _CollectionWithSizes
tacaswell Jun 8, 2014
f8424cd
DOC : tweaked Collection api auto-doc properties
tacaswell Jun 8, 2014
66fbb41
DOC : added whats_new entry for _CollectionWithSizes
tacaswell Jun 8, 2014
4853892
DOC: mention Anaconda; clean some old junk out of the FAQ
efiring Jun 7, 2014
f47dcc2
BUG : don't use mutable objects as dictionary keys
tacaswell Mar 25, 2014
89ec797
DOC : added note about maintain ref to widgets
tacaswell Jun 10, 2014
5220a57
DOC : improved docs in widgets.py
tacaswell Jun 10, 2014
2d2981b
DOC : sixify unichr
tacaswell Jun 9, 2014
c35ee74
MNT : six-ified BytesIO import in pdf backend
tacaswell Jun 10, 2014
2b0c6a1
Adding Colorbar.remove()
KevKeating Jun 10, 2014
2873a8c
DOC : merged offsetbox.rst into artists_api.rst
tacaswell Jun 10, 2014
7e2df7e
DOC : added examples index to contents page
tacaswell Jun 10, 2014
54f225f
DOC : removed out-dated example
tacaswell Jun 10, 2014
2cd9e0a
DOC : fixed section titles
tacaswell Jun 10, 2014
09bdd3a
DOC : fixed section hierarchy
tacaswell Jun 10, 2014
685e213
DOC : fixed rst formatting
tacaswell Jun 10, 2014
3aaca79
DOC : commented out non-existent file
tacaswell Jun 10, 2014
26d9cca
DOC : updated mpl_toolkits
tacaswell Jun 10, 2014
cd20633
DOC : fixed typo
tacaswell Jun 11, 2014
52a3315
DOC : updated seaborn blurb
tacaswell Jun 11, 2014
1e92661
removing tutorial files
tobias47n9e Jun 25, 2014
fd44b8a
fixed wrong diff?
tobias47n9e Jun 25, 2014
b68bb89
Merge branch 'master' of https://github.com/spiessbuerger/matplotlib
tobias47n9e Jun 25, 2014
729189d
testchange
tobias47n9e Jun 26, 2014
687a0db
Added a Glade GTK3 integration example.
tobias47n9e Jun 27, 2014
8dc4187
testchange2
tobias47n9e Jun 27, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/user_interfaces/mpl_with_glade_316.glade
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkApplicationWindow" id="window1">
<property name="can_focus">False</property>
<property name="title" translatable="yes">Matplotlib</property>
<property name="default_width">800</property>
<property name="default_height">600</property>
<signal name="destroy" handler="on_window1_destroy" swapped="no"/>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="border_width">10</property>
<property name="shadow_type">in</property>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</interface>
40 changes: 40 additions & 0 deletions examples/user_interfaces/mpl_with_glade_316.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env python3

from gi.repository import Gtk

from matplotlib.figure import Figure
from matplotlib.axes import Subplot
from numpy import arange, sin, pi
from matplotlib.backends.backend_gtk3agg import FigureCanvasGTK3Agg as FigureCanvas

class Window1Signals:
def on_window1_destroy(self, widget):
Gtk.main_quit()

def main():
builder = Gtk.Builder()
builder.add_objects_from_file("mpl_with_glade_316.glade", ("window1", "") )
builder.connect_signals(Window1Signals())
window = builder.get_object("window1")
sw = builder.get_object("scrolledwindow1")

#Start of Matplotlib specific code
figure = Figure(figsize=(8,6), dpi=71)
axis = figure.add_subplot(111)
t = arange(0.0, 3.0, 0.01)
s = sin(2*pi*t)
axis.plot(t,s)

axis.set_xlabel('time [s]')
axis.set_ylabel('voltage [V]')

canvas = FigureCanvas(figure) # a Gtk.DrawingArea
canvas.set_size_request(800,600)
sw.add_with_viewport(canvas)
#End of Matplotlib specific code

window.show_all()
Gtk.main()

if __name__ == "__main__":
main()