# Wplot problem with user-define arrays

**URL:** https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814
**Category:** VISAN
**Tags:** python
**Created:** [August 4, 2024, 7:57pm UTC](https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814 "2024-08-04T19:57:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![NigelG](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.atmospherictoolbox.org/u/NigelG)
#### Post date: [August 4, 2024, 7:57pm UTC](https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814/1 "2024-08-04T19:57:20Z")

</div>

I am using three 1-dimensional user-defined numpy arrays (lon, lat, data) with wplot and a 3-D globe projection without a problem. If I attempt to use a 2-D projection such as Plate Caree and the same arrays, I have an outline map but with no data plotted.

However, if I use a HARP product as my data, I have no problem with either 2D or 3D maps.

Am I missing something?

---

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [August 5, 2024, 10:42am UTC](https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814/2 "2024-08-05T10:42:56Z")

</div>

Can you explain how you are calling `wplot` to create the 2D and 3D plots?

Also, be aware that once you have a plot you can switch between 2D and 3D by first enabling the properties panel using the ‘View/Properties’ menu and then from the ‘Plot’ tab select the projection you want.

Furthermore, plotting HARP products will result in the same routines being called in the end, so I am rather surprised that you have a difference between that and calling `wplot` directly with your arrays.

---

<div class="post-metadata">

### Author: ![NigelG](https://forum.atmospherictoolbox.org/letter_avatar_proxy/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.atmospherictoolbox.org/u/NigelG)
#### Post date: [August 5, 2024, 1:19pm UTC](https://forum.atmospherictoolbox.org/t/wplot-problem-with-user-define-arrays/814/3 "2024-08-05T13:19:25Z")

</div>

Thank you for prompt reply. However, I have now found a solution to the problem.

It appears to be connected with the pointsize property in wplot. With my particular dataset, setting a pointsize of 1.0 allowed the 3D plot to work but not the 2D plots. Setting a pointsize of 1.5 allowed both 2D and 3D plots to work. Curiously, with no pointsize value set at all (default = 1.0?), both appeared to work.

I have also noticed that I am working with an out of date conda package. A newer one does not appear to have the problem so please close my enquiry and sorry for the bother.
