Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
差不多 - 有没有办法独立于平台,分别,后端?例如,在 MATLAB 中,这不是问题,而matplotlib似乎甚至不支持不同的单位,而是英寸。
matplotlib
如果您知道屏幕的 dpi,则可以将英寸转换为像素。但它仅适用于具有相同 dpi 的屏幕。否则,您必须使用后端来获得图形画布在屏幕上的正确大小和位置(以像素为单位)