Andrea M0r0
banner
andreamoro.bsky.social
Andrea M0r0
@andreamoro.bsky.social
🇮🇹 Economist @VanderbiltU. Joyce & Austen fan. 🍨📚🚴‍♂️⛰️🎸. I (used to) blog in 🇮🇹 @noisefromamerika.org Academic site: https://andreamoro.net - Tips: https://andreamoro.net/blog
aside: large screen are usually a negative. Long lines are hard to read; effectively using 2 columns is time consuming and difficult for the presenter
March 26, 2025 at 8:42 PM
thanks!
March 26, 2025 at 7:47 PM
February 13, 2025 at 4:32 PM
After import-export I expected comparative advantage
December 9, 2024 at 11:51 PM
yes but how cool is it from a spectator POV?
December 2, 2024 at 8:20 PM
Looking forward to it
December 16, 2023 at 10:13 AM
turns out, figtext is a pyplot method so no way to intervene on the axes. This seems to work fine though,

fig, ax = plt.subplots(1,1)
ax.plot(np.linspace(0,1,100),np.linspace(0,1,100))
ax.set_title('caption text here',y=-.15,loc='left')
November 9, 2023 at 7:16 PM
really? I tried seaborn and gave up... in the end it's hard to keep track of all innovation
November 9, 2023 at 6:57 PM
for some reason, when I define the chart with
fig, ax = plt.subplots(1,1,figsize=(3,4))
neither
ax.figtext(...)
nor
fig.figtext(...)
work... only plt.figtext... this is above my paygrade
November 9, 2023 at 5:27 PM
you're right that they make it hard to find :-)
November 9, 2023 at 4:35 PM
the row at the top of the chart is using axes.set_title, the note below is the code above
November 9, 2023 at 4:25 PM
Found it, finally
use
plt.figtext(0,.01,"put a note here", ha="left", fontsize=8)
November 9, 2023 at 4:24 PM
btw have you tried

plt.title('note text', y=-0.01)
November 3, 2023 at 12:18 AM
... obviously, graphing includes typing inside the graph, and python does that well. Typing outside the chart is also possible but difficult and best handled by your typesetting software for many reasons.
November 3, 2023 at 12:15 AM
I see your point, in principle one should be able to do anything, and in fact it's possible. But you are a bit caricaturizing the "python users" response. Lots of people want to do that in fact but graphing software should do graphs first...
November 3, 2023 at 12:14 AM
Hah sorry I thought you meant legend. Captions... why would you use graphic software for captions? There's LaTeX for that. Use the subfigure package if needed.
November 2, 2023 at 9:06 PM
I am not sure there is an alternative. The default does a pretty good job at putting captions in the emptiest area, once you deviate how can it not be manual?
October 21, 2023 at 2:07 PM
and btw isn't the L crossed with the slanted dash essentially pronounced as a U?
October 19, 2023 at 7:58 PM