Skip to content

Commit

Permalink
Updated pdf export in paraview_hello_world.ipynb to match new current…
Browse files Browse the repository at this point in the history
… paraview api.
  • Loading branch information
olastrz committed Oct 30, 2024
1 parent 4c0f146 commit 5c8006b
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,16 @@
"pvs.SaveAnimation('output/anim.ogv', view, FrameRate=10)\n",
"\n",
"# save animation frame as pdfs\n",
"exporters = pvs.servermanager.createModule('exporters')\n",
"exporter = exporters.GL2PSRenderViewExporterPDF()\n",
"exporter.Rasterize3Dgeometry = False\n",
"exporter.GL2PSdepthsortmethod = 'BSP sorting (slow, best)'\n",
"for t in reader_prod.TimestepValues:\n",
" view.ViewTime = t\n",
" for reader in (reader_prod, reader_attr):\n",
" reader.UpdatePipeline(t)\n",
" exporter.SetView(view)\n",
" exporter.FileName = f'output/anim_frame_{t}.pdf'\n",
" exporter.Write()"
" reader.UpdatePipeline(t) \n",
" pvs.ExportView(\n",
" filename=f'output/anim_frame_{t}.pdf',\n",
" view=view,\n",
" Rasterize3Dgeometry= False,\n",
" GL2PSdepthsortmethod= 'BSP sorting (slow, best)',\n",
" )"
]
},
{
Expand Down

0 comments on commit 5c8006b

Please sign in to comment.