Skip to content

Problems to plot Rotation curves for the McMillan17 and Irregang13 #541

Answered by jobovy
edan0314 asked this question in Q&A
Discussion options

You must be logged in to vote

Do you mean that the plots just don't show up? You generally have to do something to make matplotlib show figures in a notebook, e.g.,

%matplotlib inline

or

%pylab inline

EDIT: Full answer in thread below, copied here

I think the issue is one of units. MWPotential and MWPotential2014 by default don't have physical outputs turned on, so they are plotted in internal units. While McMillan17 and Irrgang13I by default return outputs in physical units, so the rotation curve is plotted in units of km/s as a function of kpc. Easiest would be to turn on physical outputs for MWPotential and MWPotential2014, following the example in the docs (bottom of this section: https://docs.galpy.org/en/late…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@edan0314
Comment options

@jobovy
Comment options

@edan0314
Comment options

Answer selected by jobovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants