python - Matplotlib timedelta set ylim -
i have series of graphs plotting different days on x axis , time in minutes on y axis. graphs have different max value , want set ylim same them. tried selecting max value pandas dataframe, , setting max using ylim. gave error message:
typeerror: ufunc 'isfinite' not supported input types, , inputs not safely coerced supported types according casting rule ''safe''
i tried manually setting limit 7 should keep visualisation similar below, instead get:
how can amend limits when y axis in timedelta , measured in minutes?
note 1e11 on upper left corner of first plot? means y-axis scaled 1e11.
manually setting ylim 7e11 give desired results.
however, 700000000000 minutes veeery long time! might indicate problem in calculations. better check code divisions - maybe divide small numbers. reason error message posted.
Comments
Post a Comment