mplhep logo placement is slow.. #382
-
Hi, We are working on a framework that is looking to utilise mplhep to plot a large number of histograms. One use case will involve plotting O(100) histograms. It seems like using the following line of code:
causes the run-time for one plot to increase by O(3000) times with respect to a simple python
takes 520 microseconds. Is this expected behaviour of the logo placement? The profilingwas done by
With using
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @MoAly98, thanks for the report. There's already an issue #338, though I haven't had a chance to fix it yet. The reason why it's slow is that the figure is drawn under the hood to find the right position for the second part of the label, this could presumably be estimated instead if calling the draw. |
Beta Was this translation helpful? Give feedback.
Hi @MoAly98, thanks for the report. There's already an issue #338, though I haven't had a chance to fix it yet. The reason why it's slow is that the figure is drawn under the hood to find the right position for the second part of the label, this could presumably be estimated instead if calling the draw.