# Pixel plots in GR.jl

**URL:** https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184
**Category:** New to Julia
**Tags:** question, plotting, pyplot, gr
**Created:** [August 3, 2020, 10:54am UTC](https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184 "2020-08-03T10:54:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![LakshyaKhatri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lakshyakhatri/32/15492_2.png) [@LakshyaKhatri](https://discourse.julialang.org/u/LakshyaKhatri)
#### Post date: [August 3, 2020, 10:54am UTC](https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184/1 "2020-08-03T10:54:29Z")

</div>

Hello everyone,

I am trying to plot a pixel series in GR which might look something like this:

![Figure_1](https://global.discourse-cdn.com/julialang/original/3X/a/0/a09fca70414b3a29463804b0ff0d652a3a736ec3.png)

In `pyplot` it is achieved by adding a `','` in the plot command (something like: `ax.plot(x, y, ',')`). In GR, I am currently achieving this by plotting a scatter plot with extremely small marker size and removing its borders.

Is there any way to do so in GR **natively** (without using the **`markersize`** hack) as we do in pyplot?

---

<div class="post-metadata">

### Author: ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)
#### Post date: [August 4, 2020, 1:27am UTC](https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184/2 "2020-08-04T01:27:29Z")

</div>

```julia
using GR
x = LinRange(0,8π,1000)
plot(x, sin.(x), ".")

```

 ![Screen Shot 2020-08-04 at 03.21.10](https://global.discourse-cdn.com/julialang/original/3X/1/e/1ef577b4ec86298e9ac441ac557007750d76ef89.png)

---

<div class="post-metadata">

### Author: ![LakshyaKhatri](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lakshyakhatri/32/15492_2.png) [@LakshyaKhatri](https://discourse.julialang.org/u/LakshyaKhatri)
#### Post date: [August 4, 2020, 5:05am UTC](https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184/3 "2020-08-04T05:05:51Z")

</div>

Thanks @jheinen 🙌❤
