# Scaling a CSV to screen

**URL:** <https://discourse.processing.org/t/scaling-a-csv-to-screen/39906>\
**Category:** Coding Questions\
**Created:** [November 27, 2022, 7:58pm UTC](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906 "2022-11-27T19:58:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rbu](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@Rbu](https://discourse.processing.org/u/Rbu)\
**Post date:** [November 27, 2022, 7:58pm UTC](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906/1 "2022-11-27T19:58:48Z")

</div>

Hello I’m on a project at the moment and I’m importing and using data from a CSV file, the problem I have is that the coordinates within the screen are to large and end up off screen, I need some advice on rescaling the data so that it fits on the screen.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [November 27, 2022, 8:15pm UTC](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906/2 "2022-11-27T20:15:41Z")

</div>

For x,y just say ` * 0.2`

Different possibilities

---

<div class="post-metadata">

**Author:** ![Rbu](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@Rbu](https://discourse.processing.org/u/Rbu)\
**Post date:** [November 27, 2022, 8:48pm UTC](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906/3 "2022-11-27T20:48:46Z")

</div>

Oh ok as simple as that, thought there might be some built in function that would to the magic, I’ll give it a try in the morning

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [November 27, 2022, 11:07pm UTC](https://discourse.processing.org/t/scaling-a-csv-to-screen/39906/4 "2022-11-27T23:07:08Z")

</div>

Hello @Rbu ,

This post may be of interest:

[https://discourse.processing.org/t/use-loadtable-with-variable-like-string-string-string-stringlist/12457/8](https://discourse.processing.org/t/use-loadtable-with-variable-like-string-string-string-stringlist/12457/8)

Also consider `textSize()`:

> **[Reference](https://processing.org/reference/textSize_.html)**
>
> Sets the current font size. This size will be used in all subsequent calls to the text() function. Font size is measured in units of pixels.

`:)`
