Skip to content

Columns order in Oncoprint #50

Closed Answered by DingWB
jfrigola asked this question in Q&A
Sep 14, 2023 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

Thanks for your question @jfrigola . If you want to remove the grid and spine for all annotations, then you need to write a for loop.
In the documentation, I only remove the grid and spine for the first annotation (Because I had only one annotation in the documentation, op.top_annotation.annotations[0], 0 means the first annotation).
You can remove the grid and spine for all annotation axes by writing a for loop:

for annotation in op.top_annotation.annotations:
    ax=annotation.ax
    ax.grid(False)
    #remove spines for top annotation and right annotation
    despine(ax=ax,left=False, bottom=True, right=False, top=True)
    despine(ax=ax,left=True, bottom=False, right=True, top=False)

I…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@jfrigola
Comment options

@DingWB
Comment options

@jfrigola
Comment options

Answer selected by DingWB
Comment options

You must be logged in to vote
3 replies
@DingWB
Comment options

@jfrigola
Comment options

@DingWB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants