Re: Plot Numbering Font Size
Samuel Doughty <[email protected]> Wed, 20 Sep 2023 19:21:44 -0500
| Newsgroups | gmane.comp.gnu.octave.general |
|---|---|
| Message-ID | <CALCCG3gF+8eJkErOOezae485kTiGsd+EXNnjxJuinaKrX71POg@mail.gmail.com> |
--===============4587358520004391836== Content-Type: multipart/alternative; boundary="000000000000b98a450605d37a52" --000000000000b98a450605d37a52 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello All, I followed Dimitri's suggestion and incorporated it into the code below. It will work one time, and then it hands up and produces no plot. What am I missing? What does the first argument in the set(0 ...) do? Thanks, Sam On Wed, Sep 20, 2023 at 7:04=E2=80=AFPM Samuel Doughty <[email protected]= m> wrote: > Thank you, Dimitri!! > > That's wonderful! It works! > > Sam > > On Wed, Sep 20, 2023 at 7:01=E2=80=AFPM Dmitri A. Sergatskov < > [email protected]> wrote: > >> set (0, "defaultaxesfontsize", 24) >> plot(1:10) >> >> Dmitri. >> -- >> >> >> On Wed, Sep 20, 2023 at 7:58=E2=80=AFPM Samuel Doughty <sdoughty11@gmail= .com> >> wrote: >> >>> Hello All, >>> >>> Thanks for all your replies. Perhaps I was unclear. What I want to do i= s >>> to enlarge the numbers that appear along the axes, e.g. 0 1 2 3 4 ... a= long >>> the x-axis and similarly along the y-axis. I found nothing in your >>> suggestions that seemed to accomplish this task. Please give me some ot= her >>> guidance. Thanks, >>> >>> Sam >>> >>> On Wed, Sep 20, 2023 at 6:26=E2=80=AFPM Santiago Higuera < >>> [email protected]> wrote: >>> >>>> You can put the property values while plotting: >>>> >>>> plot(x,y); >>>> >>>> xlabel('X', 'fontsize', 20); >>>> >>>> title('My plot', 'fontweight', 'bold', ''fontsize', '20'); >>>> >>>> Or using set(), as says Nicholas. >>>> >>>> Regards, >>>> >>>> Santiago >>>> >>>> >>>> Or you can use set() >>>> El 21/9/23 a las 0:05, Nicholas Jankowski escribi=C3=B3: >>>> >>>> > How in the world can I get larger numbers on the plot axes? >>>> >>>> Use the `set` command to change properties like fontsize. >>>> See https://docs.octave.org/v8.3.0/Axes-Properties.html >>>> >>>> ---------- >>>> We are transitioning to a web based forum >>>> for community help discussions athttps://octave.discourse.group/c/help >>>> >>>> >>> ---------- >>> We are transitioning to a web based forum >>> for community help discussions at >>> https://octave.discourse.group/c/help >>> >> --000000000000b98a450605d37a52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:comic sa= ns ms,sans-serif;font-size:large">Hello All,</div><div class=3D"gmail_defau= lt" style=3D"font-family:comic sans ms,sans-serif;font-size:large"><br></di= v><div class=3D"gmail_default" style=3D"font-family:comic sans ms,sans-seri= f;font-size:large">I followed Dimitri's suggestion and incorporated it = into the code below. It will work one time, and then it hands up and produc= es no plot. What am I missing? What does the first argument in the set(0 ..= .) do? Thanks,</div><div class=3D"gmail_default" style=3D"font-family:comic= sans ms,sans-serif;font-size:large"><br></div><div class=3D"gmail_default"= style=3D"font-family:comic sans ms,sans-serif;font-size:large">Sam<br></di= v></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr= ">On Wed, Sep 20, 2023 at 7:04=E2=80=AFPM Samuel Doughty <<a href=3D"mai= lto:[email protected]">[email protected]</a>> wrote:<br></div><blo= ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left= :1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div class= =3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif;font-size:= large">Thank you, Dimitri!!</div><div class=3D"gmail_default" style=3D"font= -family:comic sans ms,sans-serif;font-size:large"><br></div><div class=3D"g= mail_default" style=3D"font-family:comic sans ms,sans-serif;font-size:large= ">That's wonderful! It works!</div><div class=3D"gmail_default" style= =3D"font-family:comic sans ms,sans-serif;font-size:large"><br></div><div cl= ass=3D"gmail_default" style=3D"font-family:comic sans ms,sans-serif;font-si= ze:large">Sam<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr= " class=3D"gmail_attr">On Wed, Sep 20, 2023 at 7:01=E2=80=AFPM Dmitri A. Se= rgatskov <<a href=3D"mailto:[email protected]" target=3D"_blank">da= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quo= te" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204= );padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"= font-family:monospace;font-size:large">set (0, "defaultaxesfontsize&qu= ot;, 24)<br></div><div class=3D"gmail_default" style=3D"font-family:monospa= ce;font-size:large">plot(1:10)<br></div><div class=3D"gmail_default" style= =3D"font-family:monospace;font-size:large"><br></div><div class=3D"gmail_de= fault" style=3D"font-family:monospace;font-size:large">Dmitri.</div><div cl= ass=3D"gmail_default" style=3D"font-family:monospace;font-size:large">--=C2= =A0</div><div class=3D"gmail_default" style=3D"font-family:monospace;font-s= ize:large"><br></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Wed, Sep 20, 2023 at 7:58=E2=80=AFPM Samuel Doughty= <<a href=3D"mailto:[email protected]" target=3D"_blank">sdoughty11@g= mail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D= "margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le= ft:1ex"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:= "comic sans ms",sans-serif;font-size:large">Hello All,</div><div = class=3D"gmail_default" style=3D"font-family:"comic sans ms",sans= -serif;font-size:large"><br></div><div class=3D"gmail_default" style=3D"fon= t-family:"comic sans ms",sans-serif;font-size:large">Thanks for a= ll your replies. Perhaps I was unclear. What I want to do is to enlarge the= numbers that appear along the axes, e.g. 0 1 2 3 4 ... along the x-axis an= d similarly along the y-axis. I found nothing in your suggestions that seem= ed to accomplish this task. Please give me some other guidance. Thanks,</di= v><div class=3D"gmail_default" style=3D"font-family:"comic sans ms&quo= t;,sans-serif;font-size:large"><br></div><div class=3D"gmail_default" style= =3D"font-family:"comic sans ms",sans-serif;font-size:large">Sam<b= r></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmai= l_attr">On Wed, Sep 20, 2023 at 6:26=E2=80=AFPM Santiago Higuera <<a hre= f=3D"mailto:[email protected]" target=3D"_blank">shiguera@mercatorla= b.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"ma= rgin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:= 1ex"><u></u> =20 =20 =20 <div> <p>You can put the property values while plotting:<br> </p> <p>=C2=A0=C2=A0 plot(x,y);</p> <p>=C2=A0=C2=A0 xlabel('X', 'fontsize', 20);</p> <p>=C2=A0=C2=A0 title('My plot', 'fontweight', 'bol= d', ''fontsize', '20');</p> <p>Or using set(), as says Nicholas.</p> <p>Regards,</p> <p>Santiago</p> <p><br> </p> <p>Or you can use set()<br> </p> <div>El 21/9/23 a las 0:05, Nicholas Jankowski escribi=C3=B3:<br> </div> <blockquote type=3D"cite"> =20 <div dir=3D"auto"> <div class=3D"gmail_quote" dir=3D"auto"> <div dir=3D"ltr" class=3D"gmail_attr">>=C2=A0<span style=3D"fo= nt-family:"comic sans ms",sans-serif">How in the world can I get larger numbers on the plot axes?=C2=A0= </span></div> <div dir=3D"ltr" class=3D"gmail_attr"><span style=3D"font-family:= "comic sans ms",sans-serif"><br> </span></div> <div dir=3D"ltr" class=3D"gmail_attr"><font face=3D"comic sans ms= , sans-serif">Use the `set` command to change properties like fontsize.=C2=A0=C2=A0</font></div> <div dir=3D"ltr" class=3D"gmail_attr"><span style=3D"font-family:= "comic sans ms",sans-serif">See=C2=A0</span><font face=3D"comic s= ans ms, sans-serif"><a href=3D"https://docs.octave.org/v8.3.0/Axes-Properti= es.html" target=3D"_blank">https://docs.octave.org/v8.3.0/Axes-Properties.h= tml</a></font></div> </div> </div> <br> <fieldset></fieldset> <pre>---------- We are transitioning to a web based forum for community help discussions at <a href=3D"https://octave.discourse.group/c/help" target=3D"_blank">https:/= /octave.discourse.group/c/help</a> </pre> </blockquote> </div> </blockquote></div> <br> ----------<br> We are transitioning to a web based forum<br> for community help discussions at<br> <a href=3D"https://octave.discourse.group/c/help" rel=3D"noreferrer" target= =3D"_blank">https://octave.discourse.group/c/help</a><br> </blockquote></div> </blockquote></div> </blockquote></div> --000000000000b98a450605d37a52-- --===============4587358520004391836== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline Ci0tLS0tLS0tLS0KV2UgYXJlIHRyYW5zaXRpb25pbmcgdG8gYSB3ZWIgYmFzZWQgZm9ydW0KZm9y IGNvbW11bml0eSBoZWxwIGRpc2N1c3Npb25zIGF0Cmh0dHBzOi8vb2N0YXZlLmRpc2NvdXJzZS5n cm91cC9jL2hlbHAK --===============4587358520004391836==--