Giter Club home page Giter Club logo

Comments (4)

sanbeichahegongheguo avatar sanbeichahegongheguo commented on June 27, 2024 1

image

问题解决了。目前没有问题。
之前大概率是我自己jupyter的问题。

from r3dmol.

swsoyee avatar swsoyee commented on June 27, 2024

在 RStudio 中你应该是在 View 中点击 Export 导出图片的吧?目前包本身尚未支持导出成图片格式,如果想保存为图片的话可能需要用到 {webshot} 对 widgets 储存为网页然后截图导出。

输出图片功能肯定在未来需要加进去的,不过目前来说还是稍有难度,需要一些时间。

from r3dmol.

swsoyee avatar swsoyee commented on June 27, 2024

@sanbeichahegongheguo 已经追加了 m_png() 可将输出转换成png了。但是我还没有试过在 Jupyter Lab 中是否可用,理论上应该没问题。可以安装 GitHub 的开发版尝试并反馈一下嘛?谢谢。

# install.packages("devtools")
devtools::install_github("swsoyee/r3dmol")

r3dmol() %>%
  m_add_model(data = pdb_1j72, format = "pdb") %>%
  m_set_style(style = m_style_cartoon()) %>%
  m_zoom_to() %>%
  m_png(width = 800)

image

from r3dmol.

sanbeichahegongheguo avatar sanbeichahegongheguo commented on June 27, 2024

好,一会我就试试。

from r3dmol.

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.