Issue with plotting.scatter_contour

28 views
Skip to first unread message

Steven Mohammed

unread,
Feb 24, 2017, 4:44:31 PM2/24/17
to astroML-general
Hello,

Sometimes when using scatter_contour I encounter an issue where for various values of the threshold and number of bins (for instance "scatter_contour(x, y, threshold=2000, log_counts=True, histogram2d_args=dict(bins=40), plot_args=dict(color='k', markersize=1)"), the points that are beyond the threshold appear above the contours themselves.

Here's an example of when it works as it should:
http://www.astroml.org/book_figures/chapter1/fig_S82_scatter_contour.html

The case I'm describing is when the markers appear over the contours themselves. If I also plot data using scatter_contour and another data set on top using plt.scatter(), the marker points always appear on top of any other data I plot.

Is there a way I can work around this?

~Steven
Reply all
Reply to author
Forward
0 new messages