pinellolab / STREAM

STREAM: Single-cell Trajectories Reconstruction, Exploration And Mapping of single-cell data
http://stream.pinellolab.org
GNU Affero General Public License v3.0
173 stars 48 forks source link

How can I save the STREAM plot as high quality PDF file? #111

Closed crazyhottommy closed 3 years ago

crazyhottommy commented 3 years ago

Hi, A quick question, after running st.plot_stream(adata,root='S4',color=['label','CRIP1'], factor_num_win=5, dist_scale=1) how can I save the output as a high quality PDF?

Thanks!

huidongchen commented 3 years ago

Hi Ming,

You can simply set save_fig = True (by default, it will be saved as pdf file although you can change the format by specifying fig_format)

st.plot_stream(adata,root='S4',color=['label','CRIP1'], factor_num_win=5, dist_scale=1,save_fig = True)
crazyhottommy commented 3 years ago

Thanks!