# \[p5 grafica library\] I would like to know how to change the graph scale fontsize

**URL:** https://discourse.processing.org/t/p5-grafica-library-i-would-like-to-know-how-to-change-the-graph-scale-fontsize/42529
**Category:** Libraries
**Created:** [August 1, 2023, 12:51am UTC](https://discourse.processing.org/t/p5-grafica-library-i-would-like-to-know-how-to-change-the-graph-scale-fontsize/42529 "2023-08-01T00:51:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [August 1, 2023, 12:51am UTC](https://discourse.processing.org/t/p5-grafica-library-i-would-like-to-know-how-to-change-the-graph-scale-fontsize/42529/1 "2023-08-01T00:51:54Z")

</div>

[p5 grafica library] I would like to know how to change the graph scale fontsize.

> **[GitHub - jagracar/grafica.js: A simple and configurable plotting library for...](https://github.com/jagracar/grafica.js/tree/master)**
>
> master

 ![fff](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/3/7/37333a899be92dbb5eb97293f0a4e9d47a97c846.jpeg)

```auto
var plots1;

function setup() {
  createCanvas(1920, 1200);  
  var x,y,w,h,w2,h2;  
  var points = []; var s_k = 0;   
   for (var i = 0; i < 20; i++) { points[i] = new GPoint(i, random(0,1)); }   
    x=-5; y=170; w2=300; h2=213; w = 800; h=500; // w = 240; h=120;
    plots1 = new GPlot(this); plots1.setPos(x+w2*0,y+h2*0); plots1.setDim(w,h);
    plots1.setFontName("arial.ttf"); // plots1.setFontName("arial"); 
    plots1.setFontColor(color(255,0,0));
    plots1.setFontSize(100); 
    plots1.setBgColor(color(255,0));
    plots1.setPoints(points);
    plots1.setLineColor(color(250, 200, 60, 250));
    plots1.setLineWidth(2);
    plots1.setPointColor(color(0,0,0));
    plots1.setPointSize(4);  
    plots1.activatePanning();
    plots1.activateZooming(10, CENTER, CENTER);
    plots1.activatePointLabels();
    plots1.setXLim(0,20);
    plots1.setYLim(-0.5,0.5); 
    plots1.setFontSize(100); 
    
}

function draw() {
 background(255); textSize(50); 
 plots1.defaultDraw(); 
}

```

I want to increase the text size of the graph scale.  
Does anyone know how?  
help me~!

---

<div class="post-metadata">

### Author: ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)
#### Post date: [August 1, 2023, 5:37am UTC](https://discourse.processing.org/t/p5-grafica-library-i-would-like-to-know-how-to-change-the-graph-scale-fontsize/42529/2 "2023-08-01T05:37:53Z")

</div>

Hi @GWAK ,

Not tested, but looking at the GitHub code it should be s.th like …

```auto
plots1.getXAxis().setFontSize(30);
plots1.getYAxis().setFontSize(30);

```

Cheers  
— mnse

---

<div class="post-metadata">

### Author: ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)
#### Post date: [August 1, 2023, 5:59am UTC](https://discourse.processing.org/t/p5-grafica-library-i-would-like-to-know-how-to-change-the-graph-scale-fontsize/42529/3 "2023-08-01T05:59:12Z")

</div>

@mnse

Hello. That’s it. It’s what I’m looking for.  
Thank you
