简体   繁体   中英

Add Filtering in matplotlib scatter plot

I'm using matplotlib scatter plot for tSNE visualization and I want to filter my results by class. For example this one plot and I want to have an option to see only label 15000 samples: enter image description here

Is it an option? Can you please lead my way? Thanks

I think the answer here is not necessarily in matplotlib, but in the dataframe you choose to plot. After you complete your tSNE analysis, you can choose the subset of that resulting dataframe that only includes the class you're interested in. If you can provide a sample of that dataframe I'd be more than happy to provide some code as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM