K3D-tools / K3D-jupyter

K3D lets you create 3D plots backed by WebGL with high-level API (surfaces, isosurfaces, voxels, mesh, cloud points, vtk objects, volume renderer, colormaps, etc). The primary aim of K3D-jupyter is to be easy for use as stand alone package like matplotlib, but also to allow interoperation with existing libraries as VTK.
MIT License
921 stars 123 forks source link

Wireframe line width when changing screenshot DPI #338

Closed ishomam closed 2 years ago

ishomam commented 2 years ago

First, thanks for the awesome library.

I was trying to export a high quality image for a graphic which has a wireframe. To increase resolution I used plot.screenshot_scale = 6.0 However, this produces an image with thin wireframe (because wireframe width is not scaled with the image). Therefore, is there a way to change wireframe width or to scale its width when exporting with higher DPI? K3D-1650961305642

ishomam commented 2 years ago

Or if the screenshot could be taken as vector-graphics-based format such as SVG, this would also be perfect!

artur-trzesiok commented 2 years ago

Hi @ishomam

Svg is not supported. Wireframe is a shortcut to fast displaying and always have line with 1 pixel width. If you want to do wireframe I will intriduce k3d.lines - new primitive in k3d.

ishomam commented 2 years ago

Ok, thank you so much for your answer and for working on the new k3d.lines

artur-trzesiok commented 2 years ago

Please download new version of k3d@2.13.0:

It should be there :)