#๐Ÿ”’ Help making a graph look 'professional'

10 messages ยท Page 1 of 1 (latest)

waxen saddle
#

Hello, have this code:

plot.plot(v, P_holeg, label = "Hole A = 1cm$^2$")
plot.plot(v, P_n, label = "Neutron Decay")
plot.plot(v, P_b, label = "Barrier d = 70nm")
plot.legend()
plot.xlabel('Velocity (cm/s)')
plot.ylabel('Probability')
plot.title('Cell Loss Probabilites 160 neV Potential')
plot.grid()
plot.show()```

plots some linear functions... What i'm trying to do is see what I can do to make it look more ready to go into some research papers since I currently have the image attached

any and all help is apprecaited โค๏ธ
solid bronzeBOT
#

@waxen saddle

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

modern sandal
#

Use a logarithmic y-axis (and maybe x too), use frameon=False for the legend, probably remove grid, set a specific figure size (matching the size the figure would have in the article) so that the text is the right size for the article.

#

When writing formulas consider including the symbols in them too, e.g. I'd change "Hole A = 1cm$^2$" to "Hole $A = 1\text{cm}^2$"

waxen saddle
#

Cool, I'll try those, I only ask because the graphs I deal with mostly look like these but mine just appear childlike in comparison

modern sandal
waxen saddle
#

Cool, I'll have a look at this ๐Ÿ˜„

It doesn't seem complex you're right. Maybe it's just the colours.

Appreciate the help!

solid bronzeBOT
#

:warning: The owner of this post is no longer in the server.

solid bronzeBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.