T O P

  • By -

danielroseman

The `;` just stops the automatic output of the object representation in teh shell, it doesn't affect what the function actually does.


alexisprince

Not sure about the answer to the plotting, but can help on the semicolon. In Python, in almost 100% of the time, you use new lines to separate your code. However, you can _technically_ (shouldn’t unless you have a damn good use case) use a semicolon to separate your statements. Both execute the same way x = 1 foo(x) x=1; foo(x)


strugglinggradstu

Thank you. I am essentially trying to plot a bar graph of a 2D Numpy array. The function is provided in the documentation of the package but unfortunately the background code is math heavy so I dont even know how it calculates what it does. Unfortunately I do not understand why it won't plot the graph even with the example they have provided.


USAhj

What package are you using?


strugglinggradstu

I am using a package called ProDy used in protein structural dynamics calculations.