Skip to content

matplotlib + customtkinter + scaling #2533

Answered by dipeshSam
Spooyler asked this question in Q&A
Discussion options

You must be logged in to vote

The size of toolbar buttons does not change as expected because the size of toolbar buttons depends on the size of toolbar. And, the size of toolbar is relative and fixed to the bounding box of the Canvas Figure.

As you can see in the following code block:

Also, the matplotlib sets scaling by its own independently of Process Dpi Awareness, so it may create conflicts in the size of other Tkinter widgets and the size of itself.

As you can see in the following code block:

Note that the above images are screenshots of original matplotlib backend code scripts, you can inspect them by your own.
Hope, the above explanation may help you in understanding why matplotlib's widgets do not scale wit…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@Spooyler
Comment options

@dipeshSam
Comment options

@Spooyler
Comment options

Comment options

You must be logged in to vote
5 replies
@Spooyler
Comment options

@dipeshSam
Comment options

@Spooyler
Comment options

@dipeshSam
Comment options

@Spooyler
Comment options

Comment options

You must be logged in to vote
2 replies
@Spooyler
Comment options

@dipeshSam
Comment options

Answer selected by Spooyler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants