Roth-Lab / pyclone

Probabilistic model for inferring clonal population structure from deep NGS sequencing.
https://bitbucket.org/aroth85/pyclone/wiki/Home
Other
98 stars 36 forks source link

Modify x label rotations in parallel_coordinates? #13

Open wangshun1121 opened 4 years ago

wangshun1121 commented 4 years ago

Well, samples of names are mixed on x-labels in my parallel_coordinates like this:

截屏2019-11-04下午5 03 22

I modified codes of https://github.com/aroth85/pyclone/blob/d98f579bd123b4af3467d27fa68f14feefe18f0a/pyclone/post_process/plot/clusters.py#L197 and https://github.com/aroth85/pyclone/blob/d98f579bd123b4af3467d27fa68f14feefe18f0a/pyclone/post_process/plot/loci.py#L205 , setting:

 ax.set_xticklabels(samples,rotation=90)

and got following x-labels I want:

截屏2019-11-04下午5 07 21

I think these two lines can be modified as I shown above, or make other rotation values like 45?