# Plotting solution on unstructured mesh along a cartesian line in VoronoiFVM.jl

**URL:** https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258
**Category:** General Usage
**Tags:** question, visualization
**Created:** [February 24, 2025, 6:39pm UTC](https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258 "2025-02-24T18:39:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![chloisu](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@chloisu](https://discourse.julialang.org/u/chloisu)
#### Post date: [February 24, 2025, 6:39pm UTC](https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258/1 "2025-02-24T18:39:04Z")

</div>

Dear all,

I am very happy that I came across [VoronoiFVM.jl](https://github.com/WIAS-PDELib/VoronoiFVM.jl) because it makes the development of a fully-implicit numerical simulation based on the finite volume method so much easier.

Because I would like to resolve electrical double layers inside a channel, I would like to have a mesh with a higher resolution towards that interface. The appended image shows an example of such a mesh.

My question, however, is regarding plotting/exporting the solution computed using [VoronoiFVM.jl](https://github.com/WIAS-PDELib/VoronoiFVM.jl).

- For the given mesh, I would for example like to make a plot of one of my primary variables along the y-axis from y = 4 to y = 5. I looked at scalarplot!() in [GridVisualize.jl](https://github.com/WIAS-PDELib/GridVisualize.jl) or its usage in examples but I couldn’t find how to do it.

I would be very happy to have a little example or description of how I can plot or extract (doesn’t need to be a plot directly) along a certain cartesian line.

Thank you very much in advance for your answers and have a nice week!

Nik

 ![mesh](https://global.discourse-cdn.com/julialang/original/3X/c/1/c1e52dc72a5091f8eab59b08cafa2bd245d7dc97.jpeg)

---

<div class="post-metadata">

### Author: ![j-fu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j-fu/32/11373_2.png) [@j-fu](https://discourse.julialang.org/u/j-fu)
#### Post date: [February 25, 2025, 7:50am UTC](https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258/2 "2025-02-25T07:50:08Z")

</div>

Hi, this feature is on the way: [Add high level methods for sliceplot and lineplot by pjaap · Pull Request #65 · WIAS-PDELib/GridVisualize.jl · GitHub](https://github.com/WIAS-PDELib/GridVisualize.jl/pull/65) . I guess we will be done in a week or so.

---

<div class="post-metadata">

### Author: ![chloisu](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@chloisu](https://discourse.julialang.org/u/chloisu)
#### Post date: [February 25, 2025, 4:45pm UTC](https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258/3 "2025-02-25T16:45:03Z")

</div>

Hi,

Oh, wow - that’s exactly what I need. Thank you very much for adding this functionality. I’m looking forward to using it and once again, thank you very much for the great package(s).

Best,  
Nik

---

<div class="post-metadata">

### Author: ![j-fu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/j-fu/32/11373_2.png) [@j-fu](https://discourse.julialang.org/u/j-fu)
#### Post date: [March 5, 2025, 10:43am UTC](https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258/4 "2025-03-05T10:43:10Z")

</div>

Now it’s there:

> <https://github.com/WIAS-PDELib/GridVisualize.jl/blob/main/CHANGELOG.md>

---

<div class="post-metadata">

### Author: ![chloisu](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@chloisu](https://discourse.julialang.org/u/chloisu)
#### Post date: [March 12, 2025, 1:54am UTC](https://discourse.julialang.org/t/plotting-solution-on-unstructured-mesh-along-a-cartesian-line-in-voronoifvm-jl/126258/5 "2025-03-12T01:54:50Z")

</div>

Just tried it and works as intended.  
Thank you very much!
