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

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

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~!

1 Like

Hi @GWAK ,

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

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

Cheers
— mnse

2 Likes

@mnse

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

1 Like