Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to decrease marker size in **kwargs? #6

Open
andhamel opened this issue Feb 7, 2022 · 1 comment
Open

How to decrease marker size in **kwargs? #6

andhamel opened this issue Feb 7, 2022 · 1 comment

Comments

@andhamel
Copy link

andhamel commented Feb 7, 2022

Hello,

I'm reading through the documentation for qmplot and making a Manhattan plot. Very useful!

I was wondering if it's possible to decrease the marker size. In ax.scatter(), I can normally add in a s=size argument. How would I pass that into the Manhattan plot function? I see there is an option for **kwargs.

Thanks in advance!

@ShujiaHuang
Copy link
Owner

ShujiaHuang commented Feb 8, 2022

It's pretty easy. you can set marker size to be 1 by the parameter s, such as:

ax = manhattanplot(data=df,
                   sign_marker_p=1e-6,  # highline the significant SNP with ``sign_marker_color`` color.
                   is_annotate_topsnp=True,  # annotate the top SNP
                   hline_kws={"linestyle": "--", "lw": 1.3},
                   s=1,  # set the size of marker in scatter plot to be 1 (very small)
                   xticklabel_kws={"rotation": "vertical"})

Since qmplot is developed based on matplotlib, you can use any other keyword arguments which are passed to plt.scatter() in matplotlib.

ShujiaHuang pushed a commit that referenced this issue Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants