# Strange behavior of plot

**URL:** <https://discourse.julialang.org/t/strange-behavior-of-plot/79803>\
**Category:** General Usage\
**Created:** [April 21, 2022, 9:20pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot/79803 "2022-04-21T21:20:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [April 21, 2022, 9:20pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot/79803/1 "2022-04-21T21:20:21Z")

</div>

I noticed a very strange behavior of comment strings followed by the semi-colon. Consider the simple program:

```julia
using Plots
plot(1:10, 1:10, c=:blue)
#

```

This will create a plot as expected. However, if I change the last line and create the following program:

```julia
using Plots
plot(1:10, 1:10, c=:blue)
# ;

```

the plot does not appear. So I would like to understand why a line that starts with the comment symbol `#` becomes a non-comment when the line ends in a semi-colon. I also wonder what other code constructs are affected by this. It is strange. Thank you for any help.

---

<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:** [April 21, 2022, 9:27pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot/79803/2 "2022-04-21T21:27:57Z")

</div>

Linking [related post](https://discourse.julialang.org/t/vs-code-semicolon-at-the-end-of-commented-line/58195).

---

<div class="post-metadata">

**Author:** ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Post date:** [April 22, 2022, 1:28am UTC](https://discourse.julialang.org/t/strange-behavior-of-plot/79803/3 "2022-04-22T01:28:40Z")

</div>

Thanks. The link indicates a general behavior. The commenters do not admit it is a bug. It is hard to believe that this was not fixed. In my opinion, this behavior should be explained in the Julia documentation and justified if indeed it is not a bug! Thank you.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [April 22, 2022, 2:47am UTC](https://discourse.julialang.org/t/strange-behavior-of-plot/79803/4 "2022-04-22T02:47:10Z")

</div>

it’s fixed:  
[https://github.com/JuliaLang/julia/pull/43374](https://github.com/JuliaLang/julia/pull/43374)
