# Plot vector field through viskex without showing mesh

**URL:** <https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695>\
**Category:** General\
**Created:** [February 23, 2024, 5:58pm UTC](https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695 "2024-02-23T17:58:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yankang\_Liu](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/yankang_liu/32/5392_2.png) [@Yankang\_Liu](https://fenicsproject.discourse.group/u/Yankang_Liu)\
**Post date:** [February 23, 2024, 5:58pm UTC](https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695/1 "2024-02-23T17:58:55Z")

</div>

Hello,

I installed the latest version of viskex on ubuntu. And now the plot of vector field automatically includes the mesh. Is there a way to plot only the field?

---

<div class="post-metadata">

**Author:** ![francesco-ballarin](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@francesco-ballarin](https://fenicsproject.discourse.group/u/francesco-ballarin)\
**Post date:** [February 23, 2024, 8:47pm UTC](https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695/2 "2024-02-23T20:47:08Z")

</div>

> [@Yankang\_Liu](#):
>
> And now the plot of vector field automatically includes the mesh

There are three different modes. I guess you mean this one?

```auto
viskex.dolfinx.plot_vector_field(field, "name", glyph_factor=number)

```

I am not able to check now, but maybe try adding a “color=black” to have the underlying mesh plotted with a uniform color rather than colored as the magnitude of the field.

---

<div class="post-metadata">

**Author:** ![Yankang\_Liu](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/yankang_liu/32/5392_2.png) [@Yankang\_Liu](https://fenicsproject.discourse.group/u/Yankang_Liu)\
**Post date:** [February 23, 2024, 11:34pm UTC](https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695/3 "2024-02-23T23:34:06Z")

</div>

I am sorry to ask a question in a terrible way. I haven’t figure out how to use ubuntu properly yet. Here are two plots.

 ![2](https://global.discourse-cdn.com/free1/uploads/fenicsproject1/original/2X/f/f271660189fca945b1be51e4dec2ee698d14e576.jpeg)

 ![1.HEIC](https://global.discourse-cdn.com/free1/uploads/fenicsproject1/original/2X/6/6643de636e4ee515ccf5ec66f1415cbc44f54c1b.jpeg)

The first figure is the plot I have on my laptop. On this device the fenicsx and viskex were installed like two months ago. The second one is the plot I have on ubuntu. The software was installed like yesterday. There is a mesh somehow. And I don’t know how to remove it… At the moment I don’t need to see them together.

---

<div class="post-metadata">

**Author:** ![francesco-ballarin](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@francesco-ballarin](https://fenicsproject.discourse.group/u/francesco-ballarin)\
**Post date:** [February 24, 2024, 6:52am UTC](https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695/4 "2024-02-24T06:52:50Z")

</div>

Add `show_edges=False`.

If you wish, open an issue at [Issues · viskex/viskex · GitHub](https://github.com/viskex/viskex/issues) to remind me that I should be showing that in tutorial 01. I won’t be able to process it for a few weeks, but at least it would be there as a reminder.

---

<div class="post-metadata">

**Author:** ![Yankang\_Liu](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/yankang_liu/32/5392_2.png) [@Yankang\_Liu](https://fenicsproject.discourse.group/u/Yankang_Liu)\
**Post date:** [February 24, 2024, 7:45pm UTC](https://fenicsproject.discourse.group/t/plot-vector-field-through-viskex-without-showing-mesh/13695/5 "2024-02-24T19:45:33Z")

</div>

Yes I have created in github. I think it would be very helpful if you can add some usage of options albeit the visualization is very convenient.
