Python Forum
Trying to make a graph with GUI - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Trying to make a graph with GUI (/thread-14113.html)



Trying to make a graph with GUI - Jemeronimo - Nov-15-2018

Hey guys,

I want to make a graph where the user can change the value of let's say 'x' by shifting a bar between two values.
So for example the graph y=2^x with a bar for x between 10 and 20. How could I code this?

Thanks,

Jemeronimo


RE: Trying to make a graph with GUI - Gribouillis - Nov-15-2018

Do you mean something like matplotlib's slider demo?


RE: Trying to make a graph with GUI - Jemeronimo - Nov-15-2018

Oh thanks Gribouillis, that seems to be exactly what I need. I'm going to check it out.

I'm looking more for something where the user can change it while looking at the picture (and seeing what this change does).