From 4bb19a39109089c029f3bef92a39b9d26661bfc5 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Thu, 9 Mar 2017 12:28:37 -0800 Subject: [PATCH] use rounding instead of truncation to calculate the frame size --- lib/matplotlib/animation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index fa03f90d7ad8..b260ed0686be 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -267,7 +267,7 @@ def __init__(self, fps=5, codec=None, bitrate=None, extra_args=None, def frame_size(self): 'A tuple (width,height) in pixels of a movie frame.' w, h = self.fig.get_size_inches() - return int(w * self.dpi), int(h * self.dpi) + return round(w * self.dpi), round(h * self.dpi) def _adjust_frame_size(self): if self.codec == 'h264': pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy