You should just need to adjust the
y value in the
Because it is always easier to have some code and examples that can be directly run when trying to debug, I made a gist of a demonstration notebook here. (In addition, I noted when trying to use the code I myself placed in code blocks at Discourse that the quotes messed up in the notebook it seems. So this allows you to use example code direct.)
If you need a place to easily run it, go here and press
launch bendit and upload the notebook by drag and drop into the file navigation panel on the right, assuming you have already downloaded it to your local machine from the gist. There isn’t anything magical about that environment that launches in the Jupyter Lab session other than it has recent plotting packages and it was handy.
If your code isn’t behaving like that you want to post toy data with your code, I’d be happy to debug if it isn’t working well. One tip is that often you’ll find different behavior depending on when in the figure building process you invoke objects. Another thing I’d suggest testing things in a clean notebook in your environment. That way you can rule out some code earlier in your notebook causing an issue.