Code Monkey home page Code Monkey logo

Comments (6)

DingWB avatar DingWB commented on May 22, 2024 1

I see. Thanks for the question.

from pycomplexheatmap.

DingWB avatar DingWB commented on May 22, 2024

Did you set

plt.rcParams['font.family']='sans serif'
plt.rcParams['font.sans-serif']='Arial'
plt.rcParams['pdf.fonttype']=42

and use

plt.savefig("clustermap.pdf", bbox_inches='tight')

to save the figure?

If not, please do so and follow by any example on the documentation website, for example: https://dingwb.github.io/PyComplexHeatmap/build/html/notebooks/composite_heatmaps.html#Composite-two-heatmaps-horizontally-for-mouse-DNA-methylation-array-dataset

from pycomplexheatmap.

kerenzhou062 avatar kerenzhou062 commented on May 22, 2024

No, it doesn't work. I mean the text part is editable, but the heatmap part is an image.

from pycomplexheatmap.

DingWB avatar DingWB commented on May 22, 2024

Oh, I see.
Please use rasterized=False, then the pdf should be editable.

from pycomplexheatmap.

DingWB avatar DingWB commented on May 22, 2024

However, when your data is enormous and set rasterized=False, the size of the generated pdf would be very large.

Could you please tell me why you would like to edit the pdf? If you want to composite two heatmaps together, you can try the composite function in PyComplexHeatmap. If you would like to draw a custom box or something, you can also do that in PyComplexHeatmap.

from pycomplexheatmap.

kerenzhou062 avatar kerenzhou062 commented on May 22, 2024

Thanks, it works now. Well, you always need to adjust the figures to fit different arrangements when get it published.

from pycomplexheatmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.