# Data visualization with own images

**URL:** https://discourse.processing.org/t/data-visualization-with-own-images/2452
**Category:** Coding Questions
**Created:** [August 7, 2018, 7:06pm UTC](https://discourse.processing.org/t/data-visualization-with-own-images/2452 "2018-08-07T19:06:06Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [August 10, 2018, 7:51pm UTC](https://discourse.processing.org/t/data-visualization-with-own-images/2452/21 "2018-08-10T19:51:29Z")

</div>

You should really get into the habit of [debugging your code](https://happycoding.io/tutorials/processing/debugging) by stepping through your code line-by-line, first with your eyes, then with a piece of paper and a pencil, and finally with the debugger that comes with the Processing editor. You should also get into the habit of doing research: googling your error is always a good idea.

Doing these things before you post will save you time, and it will save time for the people answering questions. (Who are doing this for free in their spare time!)

Please read this guide for more info:

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-tips-on-asking-questions/2147):
>
> Summary (TL;DR) Ask complete questions to get better answers! Be specific. For example: I want to load an image. I tried using createImg() , and I expected the image to be on canvas, but what happened instead was the image showing up below the canvas. Isolate your problem and work in small steps. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want. Can we run your code to …

Anyway, your error is a syntax error that’s caused by having to many opening or closing brackets. For example:

```auto
void setup(){

}
}

```

This code would not compile because it contains an extra `}` closing bracket.

You can debug this error by making sure your code is properly formatted, and then going through and making sure that your brackets are all correctly matched.

After you fix this problem, you’re going to have another problem with your `if` statements. But again, you really need to get into the habit of debugging your code- it’s a huge part of what programming is.

Good luck!

---

_[View the full topic](https://discourse.processing.org/t/data-visualization-with-own-images/2452)._
