S
S
Sergey2015-10-24 19:23:22
Python
Sergey, 2015-10-24 19:23:22

How to draw bar graphs in GTK3 widget + PyGObject?

How to draw bar graphs to a GTK3 (PyGObject) widget?
matplotlib is not an option since too heavy for drawing simple diagrams.
PS Python3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2015-10-25
@nirvimel

In your case, probably, only manually draw with simple primitives (rectangles, lines) on the DrawingArea using DrawingMethods (this is under gtk2, but under the 3rd it will be similar). It is unlikely that somewhere there is a SPECIAL library for drawing EXACTLY histograms EXACTLY under GTK3, moreover, it is lightweight enough for you.
If there are no TECHNICAL limitations preventing you from using matplotlib, then you will probably end up using it. All python software under GTK that can draw histograms is one way or another based on matplotlib. There don't seem to be any real alternatives.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question