# A question about drawing

**URL:** <https://discourse.julialang.org/t/a-question-about-drawing/66140>\
**Category:** General Usage\
**Tags:** question, plotting, pgfplotsx\
**Created:** [August 10, 2021, 3:27pm UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140 "2021-08-10T15:27:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [August 10, 2021, 3:27pm UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140/1 "2021-08-10T15:27:02Z")

</div>

```julia
p1 = range(0, 360; length = 100)' # parameter 1
p2 = range(0, 360; length = 70) # parameter 2
w1 = @. sind(3*(p1 + 2 * p2)) + 1.25 # wave 1
w2 = @. 6 + w1 * cosd(p1) # wave 2
x = vec(@. w2 * cosd(p2))
y = vec(@. w2 * sind(p2))
z = vec(@. w1 * sind(p1))
logo_colors = [(77,100,174), (57,151,79), (255,255,255), (146,89,163), (202,60,50)]

@pgf Axis(
    {
        axis_equal,
        axis_lines = "none"
    },
    Plot3(
        {
            surf,
            z_buffer = "sort",
            colormap = "{Julia}{$(join(map(c -> "rgb255=$c", logo_colors), ", "))}",
            "mesh/rows" = length(p1)
        },
        Table(x, y, z)))

```

When I run this code, no images are shown in my Plots. Why is that?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/4/046b7202f83a4d48145574ca5e0208a6d30dd91d.png)

Thank you very much

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [August 10, 2021, 11:06pm UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140/2 "2021-08-10T23:06:07Z")

</div>

Know nothing about that plotting package but FWIW, in Win10 Julia 1.7.1, your code (`using PGFPlotsX`) and after installing MikTeX, opens the default Windows PDF viewer with the following parametric surface:

 ![PGFPlotsX_parametric_string](https://global.discourse-cdn.com/julialang/original/3X/c/e/cee2a358a09c5444b61881e1c41bb946647f6769.jpeg)

---

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [August 11, 2021, 2:17am UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140/3 "2021-08-11T02:17:49Z")

</div>

Sorry, I don’t quite understand what you mean. Do I need to install other Pkg?

---

<div class="post-metadata">

**Author:** ![genkuroki](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/genkuroki/32/18030_2.png) [@genkuroki](https://discourse.julialang.org/u/genkuroki)\
**Post date:** [August 11, 2021, 2:51am UTC](https://discourse.julialang.org/t/a-question-about-drawing/66140/4 "2021-08-11T02:51:43Z")

</div>

I installed [TeX Live](https://www.tug.org/texlive/) in my personal computer (Win 10) and added the [PGFPlotsX.jl](https://github.com/KristofferC/PGFPlotsX.jl) package to Julia. As a result, I got the plots, at least on Jupyter, as follows.

 ![2021-08-11 (1)](https://global.discourse-cdn.com/julialang/original/3X/e/2/e23bdd65bd76b74f92b8a03169939ad483c2bab5.png)
