Python Forum
Help plotting function - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Help plotting function (/thread-21204.html)



Help plotting function - Pbworm1998 - Sep-19-2019

Hello. I am new to python.

I wanted to know the syntax for a problem

Suppose I want to plot a quantity x = (constant with a fixed given value) * ln (1+z) versus z (which varies from c to d)

How do I define the variables x and z, how do I input an 'ln' function

I have imported numpy, scipy and matplotlib, but do not know how to proceed thereafter.


Thank you


RE: Help plotting function - ndc85430 - Sep-20-2019

If you don't even know basic things like how to define variables, perhaps you need to go and read some introductory material on the language? The libraries you mention also have pretty good documentation, so you should read that too.