0

I'm plotting quite simple with

plt.plot(a,b)
plt.grid()
plt.show()

But I need a figure text. I know I can use text(x, y, my_text) but I don't always know which combinations of x and y are visible in the plot due to different plot values.

Can I instead place the text below the plot? I guess it's something like

fig = plt.figure()
fig.text(0,0,my_text)
fig.plot(a,b)
1
  • 1
    Yes, you can place the text below the plot. Look around for "matplotlib caption". Also, there' s very likely a way to get around "I don't always know.." if you explain the problem a bit more. Commented May 2, 2015 at 17:36

1 Answer 1

1

(x, y) combination follow the next rules for figure coordinate system:

  • (0, 0) is bottom left of the figure.
  • (1, 1) is top right of the figure.

This is independent of the plot. You also can use axes coordinate and user data coordinate (Transformations tutorial).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.