You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the matplotlib documentation, one should not use pyplot with web frameworks such as Django or Flask. Instead,
[s]ince Matplotlib 3.1, one can directly create figures using the Figure constructor and save them to in-memory buffers. In older versions, it was necessary to explicitly instantiate an Agg canvas (see e.g. CanvasAgg demo).
Now, as I changed this in my Django application, adjustText stopped working*. I see that it is importing pyplot explicitly. Is it feasible to change adjustText so that it only uses matplotlib.figure.Figure?
*) If I annotated a scatter plot with .text(), adjust_text() would remove all texts. If I used .annotate(), it would not move all labels quite a bit right, but not make any useful changes.
The text was updated successfully, but these errors were encountered:
According to the matplotlib documentation, one should not use pyplot with web frameworks such as Django or Flask. Instead,
Now, as I changed this in my Django application, adjustText stopped working*. I see that it is importing pyplot explicitly. Is it feasible to change adjustText so that it only uses matplotlib.figure.Figure?
*) If I annotated a scatter plot with .text(), adjust_text() would remove all texts. If I used .annotate(), it would not move all labels quite a bit right, but not make any useful changes.
The text was updated successfully, but these errors were encountered: