How to rename pi as another value only for y axis without affecting pi used in x axis?How to remove PSTricks dictionary or library codes in an EPS file produced by dvips?How to express a polar coordinate for a macro that only accepts space-separated values?How to pass a macro as a value for a key?

Windows OS quantum vs. SQL OS Quantum

Intersecting with the x-axis / intersecting the x-axis

How to get a ellipse shaped node in Tikz Network?

How to find the tex encoding of specific fonts?

Thesis' "Future Work" section – is it acceptable to omit personal involvement in a mentioned project?

What do "KAL." and "A.S." stand for in this inscription?

Extending Kan fibrations, without using minimal fibrations

Pre-1993 comic in which Wolverine's claws were turned to rubber?

Watching the game, having a puzzle

What was the notion of limit that Newton used?

Why was the ancient one so hesitant to teach Dr Strange the art of sorcery

Program for finding longest run of zeros from a list of 100 random integers which are either 0 or 1

A Cunning Riley Riddle

Improving Sati-Sampajañña (situative wisdom)

Company threw a surprise party for the CEO, 3 weeks later management says we have to pay for it, do I have to?

Would encrypting a database protect against a compromised admin account?

spatiotemporal regression

How to make a language evolve quickly?

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech

Why was wildfire not used during the Battle of Winterfell?

What food production methods would allow a metropolis like New York to become self sufficient

Is every story set in the future "science fiction"?

How can I avoid subordinates and coworkers leaving work until the last minute, then having no time for revisions?

Why does increasing the sampling rate make implementing an anti-aliasing filter easier?



How to rename pi as another value only for y axis without affecting pi used in x axis?


How to remove PSTricks dictionary or library codes in an EPS file produced by dvips?How to express a polar coordinate for a macro that only accepts space-separated values?How to pass a macro as a value for a key?













5















Case 1



The labels in y axis are multiples of fracsqrt33 while the labels in x axis are multiples of fracpi4.



I want to rename pi as sqrt3 only for y axis without affecting the original meaning of pi used in x axis. How to do so?



enter image description here



documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
usepackagepst-plot,pst-calculate
usepackage[nomessages]fp

FPsetEPSILON0.3

FPevalConstroot(2,3)

FPevalLeft0-pi
FPevalRight2*pi

FPevalTopConst
FPevalBottom0-Const


FPsetxTrigLabelBase4
FPsetyTrigLabelBase3

FPsetDx1
FPsetDy1

FPevaldxpi/xTrigLabelBase*Dx
FPevaldyConst/yTrigLabelBase*Dy

FPevalXUnit15/(Right-Left)
FPevalYUnit6/(Top-Bottom)

psset

xunit=XUnit,
yunit=YUnit,
dx=dx,
Dx=Dx,
dy=dy,
Dy=Dy,
xtrigLabels,
ytrigLabels,
xtrigLabelBase=xTrigLabelBase,
ytrigLabelBase=yTrigLabelBase,
showorigin=false,




begindocument
beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
%defpisqrt3
psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
endpspicture
enddocument


Case 2



Red-Cloud's answer works for the first case in which the constant is sqrt3. Unfortunately, if I change to 1, the output does not make sense as follows. Instead of making an new question, could you make it work as well for 1?



enter image description here



documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
usepackagepst-plot,pst-calculate
usepackage[nomessages]fp

FPsetEPSILON0.3

FPevalConst1%root(2,3)

FPevalLeft0-pi
FPevalRight2*pi

FPevalTop2*Const
FPevalBottom0-Const


FPsetxTrigLabelBase4
FPsetyTrigLabelBase3

FPsetDx1
FPsetDy1

FPevaldxpi/xTrigLabelBase*Dx
FPevaldyConst/yTrigLabelBase*Dy

FPevalXUnit15/(Right-Left)
FPevalYUnit6/(Top-Bottom)

psset

xunit=XUnit,
yunit=YUnit,
dx=dx,
Dx=Dx,
dy=dy,
Dy=Dy,
xtrigLabels,
ytrigLabels,
xtrigLabelBase=xTrigLabelBase,
ytrigLabelBase=yTrigLabelBase,
showorigin=false,


makeatletter
letpst@@VLabelspst@@vlabels
defpst@@vlabelsdefpi1pst@@VLabels
makeatother

begindocument
beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
endpspicture
enddocument









share|improve this question




























    5















    Case 1



    The labels in y axis are multiples of fracsqrt33 while the labels in x axis are multiples of fracpi4.



    I want to rename pi as sqrt3 only for y axis without affecting the original meaning of pi used in x axis. How to do so?



    enter image description here



    documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
    usepackagepst-plot,pst-calculate
    usepackage[nomessages]fp

    FPsetEPSILON0.3

    FPevalConstroot(2,3)

    FPevalLeft0-pi
    FPevalRight2*pi

    FPevalTopConst
    FPevalBottom0-Const


    FPsetxTrigLabelBase4
    FPsetyTrigLabelBase3

    FPsetDx1
    FPsetDy1

    FPevaldxpi/xTrigLabelBase*Dx
    FPevaldyConst/yTrigLabelBase*Dy

    FPevalXUnit15/(Right-Left)
    FPevalYUnit6/(Top-Bottom)

    psset

    xunit=XUnit,
    yunit=YUnit,
    dx=dx,
    Dx=Dx,
    dy=dy,
    Dy=Dy,
    xtrigLabels,
    ytrigLabels,
    xtrigLabelBase=xTrigLabelBase,
    ytrigLabelBase=yTrigLabelBase,
    showorigin=false,




    begindocument
    beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
    psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
    %defpisqrt3
    psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
    endpspicture
    enddocument


    Case 2



    Red-Cloud's answer works for the first case in which the constant is sqrt3. Unfortunately, if I change to 1, the output does not make sense as follows. Instead of making an new question, could you make it work as well for 1?



    enter image description here



    documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
    usepackagepst-plot,pst-calculate
    usepackage[nomessages]fp

    FPsetEPSILON0.3

    FPevalConst1%root(2,3)

    FPevalLeft0-pi
    FPevalRight2*pi

    FPevalTop2*Const
    FPevalBottom0-Const


    FPsetxTrigLabelBase4
    FPsetyTrigLabelBase3

    FPsetDx1
    FPsetDy1

    FPevaldxpi/xTrigLabelBase*Dx
    FPevaldyConst/yTrigLabelBase*Dy

    FPevalXUnit15/(Right-Left)
    FPevalYUnit6/(Top-Bottom)

    psset

    xunit=XUnit,
    yunit=YUnit,
    dx=dx,
    Dx=Dx,
    dy=dy,
    Dy=Dy,
    xtrigLabels,
    ytrigLabels,
    xtrigLabelBase=xTrigLabelBase,
    ytrigLabelBase=yTrigLabelBase,
    showorigin=false,


    makeatletter
    letpst@@VLabelspst@@vlabels
    defpst@@vlabelsdefpi1pst@@VLabels
    makeatother

    begindocument
    beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
    psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
    psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
    endpspicture
    enddocument









    share|improve this question


























      5












      5








      5








      Case 1



      The labels in y axis are multiples of fracsqrt33 while the labels in x axis are multiples of fracpi4.



      I want to rename pi as sqrt3 only for y axis without affecting the original meaning of pi used in x axis. How to do so?



      enter image description here



      documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
      usepackagepst-plot,pst-calculate
      usepackage[nomessages]fp

      FPsetEPSILON0.3

      FPevalConstroot(2,3)

      FPevalLeft0-pi
      FPevalRight2*pi

      FPevalTopConst
      FPevalBottom0-Const


      FPsetxTrigLabelBase4
      FPsetyTrigLabelBase3

      FPsetDx1
      FPsetDy1

      FPevaldxpi/xTrigLabelBase*Dx
      FPevaldyConst/yTrigLabelBase*Dy

      FPevalXUnit15/(Right-Left)
      FPevalYUnit6/(Top-Bottom)

      psset

      xunit=XUnit,
      yunit=YUnit,
      dx=dx,
      Dx=Dx,
      dy=dy,
      Dy=Dy,
      xtrigLabels,
      ytrigLabels,
      xtrigLabelBase=xTrigLabelBase,
      ytrigLabelBase=yTrigLabelBase,
      showorigin=false,




      begindocument
      beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
      psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
      %defpisqrt3
      psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
      endpspicture
      enddocument


      Case 2



      Red-Cloud's answer works for the first case in which the constant is sqrt3. Unfortunately, if I change to 1, the output does not make sense as follows. Instead of making an new question, could you make it work as well for 1?



      enter image description here



      documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
      usepackagepst-plot,pst-calculate
      usepackage[nomessages]fp

      FPsetEPSILON0.3

      FPevalConst1%root(2,3)

      FPevalLeft0-pi
      FPevalRight2*pi

      FPevalTop2*Const
      FPevalBottom0-Const


      FPsetxTrigLabelBase4
      FPsetyTrigLabelBase3

      FPsetDx1
      FPsetDy1

      FPevaldxpi/xTrigLabelBase*Dx
      FPevaldyConst/yTrigLabelBase*Dy

      FPevalXUnit15/(Right-Left)
      FPevalYUnit6/(Top-Bottom)

      psset

      xunit=XUnit,
      yunit=YUnit,
      dx=dx,
      Dx=Dx,
      dy=dy,
      Dy=Dy,
      xtrigLabels,
      ytrigLabels,
      xtrigLabelBase=xTrigLabelBase,
      ytrigLabelBase=yTrigLabelBase,
      showorigin=false,


      makeatletter
      letpst@@VLabelspst@@vlabels
      defpst@@vlabelsdefpi1pst@@VLabels
      makeatother

      begindocument
      beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
      psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
      psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
      endpspicture
      enddocument









      share|improve this question
















      Case 1



      The labels in y axis are multiples of fracsqrt33 while the labels in x axis are multiples of fracpi4.



      I want to rename pi as sqrt3 only for y axis without affecting the original meaning of pi used in x axis. How to do so?



      enter image description here



      documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
      usepackagepst-plot,pst-calculate
      usepackage[nomessages]fp

      FPsetEPSILON0.3

      FPevalConstroot(2,3)

      FPevalLeft0-pi
      FPevalRight2*pi

      FPevalTopConst
      FPevalBottom0-Const


      FPsetxTrigLabelBase4
      FPsetyTrigLabelBase3

      FPsetDx1
      FPsetDy1

      FPevaldxpi/xTrigLabelBase*Dx
      FPevaldyConst/yTrigLabelBase*Dy

      FPevalXUnit15/(Right-Left)
      FPevalYUnit6/(Top-Bottom)

      psset

      xunit=XUnit,
      yunit=YUnit,
      dx=dx,
      Dx=Dx,
      dy=dy,
      Dy=Dy,
      xtrigLabels,
      ytrigLabels,
      xtrigLabelBase=xTrigLabelBase,
      ytrigLabelBase=yTrigLabelBase,
      showorigin=false,




      begindocument
      beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
      psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
      %defpisqrt3
      psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
      endpspicture
      enddocument


      Case 2



      Red-Cloud's answer works for the first case in which the constant is sqrt3. Unfortunately, if I change to 1, the output does not make sense as follows. Instead of making an new question, could you make it work as well for 1?



      enter image description here



      documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
      usepackagepst-plot,pst-calculate
      usepackage[nomessages]fp

      FPsetEPSILON0.3

      FPevalConst1%root(2,3)

      FPevalLeft0-pi
      FPevalRight2*pi

      FPevalTop2*Const
      FPevalBottom0-Const


      FPsetxTrigLabelBase4
      FPsetyTrigLabelBase3

      FPsetDx1
      FPsetDy1

      FPevaldxpi/xTrigLabelBase*Dx
      FPevaldyConst/yTrigLabelBase*Dy

      FPevalXUnit15/(Right-Left)
      FPevalYUnit6/(Top-Bottom)

      psset

      xunit=XUnit,
      yunit=YUnit,
      dx=dx,
      Dx=Dx,
      dy=dy,
      Dy=Dy,
      xtrigLabels,
      ytrigLabels,
      xtrigLabelBase=xTrigLabelBase,
      ytrigLabelBase=yTrigLabelBase,
      showorigin=false,


      makeatletter
      letpst@@VLabelspst@@vlabels
      defpst@@vlabelsdefpi1pst@@VLabels
      makeatother

      begindocument
      beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
      psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
      psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
      endpspicture
      enddocument






      pstricks pst-plot






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 5 hours ago









      Phelype Oleinik

      27.1k54793




      27.1k54793










      asked 8 hours ago









      Artificial Odorless ArmpitArtificial Odorless Armpit

      5,26611243




      5,26611243




















          2 Answers
          2






          active

          oldest

          votes


















          2














          makeatletter
          letpst@@VLabelspst@@vlabels
          defpst@@vlabelsdefpisqrt3pst@@VLabels
          makeatother
          begindocument
          [...]
          enddocument





          share|improve this answer























          • page 39 of the pst-plot documentation

            – Red-Cloud
            4 hours ago











          • Thank you very much!

            – Artificial Odorless Armpit
            4 hours ago


















          5














          I don't think there is (that is, I didn't find) a built-in way to do that. With etoolbox you can patch the code for the x and y labels to add arbitrary definitions:



          usepackageetoolbox
          makeatletter
          patchcmdpst@@vlabels
          vbox to -psk@ylabelOffset
          YAxis@labelHook@codevbox to -psk@ylabelOffset
          FailedToPatch
          define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
          patchcmdpst@@hlabels
          ifcasepsk@xlabelPos
          XAxis@labelHook@codeifcasepsk@xlabelPos
          FailedToPatch
          define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
          psset
          ExecuteBeforeYLabels=,
          ExecuteBeforeXLabels=,

          makeatother


          then you just need:



          pssetExecuteBeforeYLabels=defpisqrt3



          enter image description here




          Full code:



          documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
          usepackagepst-plot,pst-calculate
          usepackage[nomessages]fp

          FPsetEPSILON0.3

          FPevalConstroot(2,3)

          FPevalLeft0-pi
          FPevalRight2*pi

          FPevalTopConst
          FPevalBottom0-Const

          FPsetxTrigLabelBase4
          FPsetyTrigLabelBase3

          FPsetDx1
          FPsetDy1

          FPevaldxpi/xTrigLabelBase*Dx
          FPevaldyConst/yTrigLabelBase*Dy

          FPevalXUnit15/(Right-Left)
          FPevalYUnit6/(Top-Bottom)

          usepackageetoolbox
          makeatletter
          patchcmdpst@@vlabels
          vbox to -psk@ylabelOffset
          YAxis@labelHook@codevbox to -psk@ylabelOffset
          FailedToPatch
          define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
          patchcmdpst@@hlabels
          ifcasepsk@xlabelPos
          XAxis@labelHook@codeifcasepsk@xlabelPos
          FailedToPatch
          define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
          psset
          ExecuteBeforeYLabels=,
          ExecuteBeforeXLabels=,

          makeatother

          psset

          xunit=XUnit,
          yunit=YUnit,
          dx=dx,
          Dx=Dx,
          dy=dy,
          Dy=Dy,
          xtrigLabels,
          ytrigLabels,
          xtrigLabelBase=xTrigLabelBase,
          ytrigLabelBase=yTrigLabelBase,
          showorigin=false,
          ExecuteBeforeYLabels=defpisqrt3,
          % ExecuteBeforeXLabels=defpisqrt3,


          begindocument
          beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
          psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
          %defpisqrt3
          psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
          endpspicture
          enddocument





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "85"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f489995%2fhow-to-rename-pi-as-another-value-only-for-y-axis-without-affecting-pi-used-in%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            makeatletter
            letpst@@VLabelspst@@vlabels
            defpst@@vlabelsdefpisqrt3pst@@VLabels
            makeatother
            begindocument
            [...]
            enddocument





            share|improve this answer























            • page 39 of the pst-plot documentation

              – Red-Cloud
              4 hours ago











            • Thank you very much!

              – Artificial Odorless Armpit
              4 hours ago















            2














            makeatletter
            letpst@@VLabelspst@@vlabels
            defpst@@vlabelsdefpisqrt3pst@@VLabels
            makeatother
            begindocument
            [...]
            enddocument





            share|improve this answer























            • page 39 of the pst-plot documentation

              – Red-Cloud
              4 hours ago











            • Thank you very much!

              – Artificial Odorless Armpit
              4 hours ago













            2












            2








            2







            makeatletter
            letpst@@VLabelspst@@vlabels
            defpst@@vlabelsdefpisqrt3pst@@VLabels
            makeatother
            begindocument
            [...]
            enddocument





            share|improve this answer













            makeatletter
            letpst@@VLabelspst@@vlabels
            defpst@@vlabelsdefpisqrt3pst@@VLabels
            makeatother
            begindocument
            [...]
            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 6 hours ago









            Red-CloudRed-Cloud

            1,17911




            1,17911












            • page 39 of the pst-plot documentation

              – Red-Cloud
              4 hours ago











            • Thank you very much!

              – Artificial Odorless Armpit
              4 hours ago

















            • page 39 of the pst-plot documentation

              – Red-Cloud
              4 hours ago











            • Thank you very much!

              – Artificial Odorless Armpit
              4 hours ago
















            page 39 of the pst-plot documentation

            – Red-Cloud
            4 hours ago





            page 39 of the pst-plot documentation

            – Red-Cloud
            4 hours ago













            Thank you very much!

            – Artificial Odorless Armpit
            4 hours ago





            Thank you very much!

            – Artificial Odorless Armpit
            4 hours ago











            5














            I don't think there is (that is, I didn't find) a built-in way to do that. With etoolbox you can patch the code for the x and y labels to add arbitrary definitions:



            usepackageetoolbox
            makeatletter
            patchcmdpst@@vlabels
            vbox to -psk@ylabelOffset
            YAxis@labelHook@codevbox to -psk@ylabelOffset
            FailedToPatch
            define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
            patchcmdpst@@hlabels
            ifcasepsk@xlabelPos
            XAxis@labelHook@codeifcasepsk@xlabelPos
            FailedToPatch
            define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
            psset
            ExecuteBeforeYLabels=,
            ExecuteBeforeXLabels=,

            makeatother


            then you just need:



            pssetExecuteBeforeYLabels=defpisqrt3



            enter image description here




            Full code:



            documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
            usepackagepst-plot,pst-calculate
            usepackage[nomessages]fp

            FPsetEPSILON0.3

            FPevalConstroot(2,3)

            FPevalLeft0-pi
            FPevalRight2*pi

            FPevalTopConst
            FPevalBottom0-Const

            FPsetxTrigLabelBase4
            FPsetyTrigLabelBase3

            FPsetDx1
            FPsetDy1

            FPevaldxpi/xTrigLabelBase*Dx
            FPevaldyConst/yTrigLabelBase*Dy

            FPevalXUnit15/(Right-Left)
            FPevalYUnit6/(Top-Bottom)

            usepackageetoolbox
            makeatletter
            patchcmdpst@@vlabels
            vbox to -psk@ylabelOffset
            YAxis@labelHook@codevbox to -psk@ylabelOffset
            FailedToPatch
            define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
            patchcmdpst@@hlabels
            ifcasepsk@xlabelPos
            XAxis@labelHook@codeifcasepsk@xlabelPos
            FailedToPatch
            define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
            psset
            ExecuteBeforeYLabels=,
            ExecuteBeforeXLabels=,

            makeatother

            psset

            xunit=XUnit,
            yunit=YUnit,
            dx=dx,
            Dx=Dx,
            dy=dy,
            Dy=Dy,
            xtrigLabels,
            ytrigLabels,
            xtrigLabelBase=xTrigLabelBase,
            ytrigLabelBase=yTrigLabelBase,
            showorigin=false,
            ExecuteBeforeYLabels=defpisqrt3,
            % ExecuteBeforeXLabels=defpisqrt3,


            begindocument
            beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
            psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
            %defpisqrt3
            psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
            endpspicture
            enddocument





            share|improve this answer



























              5














              I don't think there is (that is, I didn't find) a built-in way to do that. With etoolbox you can patch the code for the x and y labels to add arbitrary definitions:



              usepackageetoolbox
              makeatletter
              patchcmdpst@@vlabels
              vbox to -psk@ylabelOffset
              YAxis@labelHook@codevbox to -psk@ylabelOffset
              FailedToPatch
              define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
              patchcmdpst@@hlabels
              ifcasepsk@xlabelPos
              XAxis@labelHook@codeifcasepsk@xlabelPos
              FailedToPatch
              define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
              psset
              ExecuteBeforeYLabels=,
              ExecuteBeforeXLabels=,

              makeatother


              then you just need:



              pssetExecuteBeforeYLabels=defpisqrt3



              enter image description here




              Full code:



              documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
              usepackagepst-plot,pst-calculate
              usepackage[nomessages]fp

              FPsetEPSILON0.3

              FPevalConstroot(2,3)

              FPevalLeft0-pi
              FPevalRight2*pi

              FPevalTopConst
              FPevalBottom0-Const

              FPsetxTrigLabelBase4
              FPsetyTrigLabelBase3

              FPsetDx1
              FPsetDy1

              FPevaldxpi/xTrigLabelBase*Dx
              FPevaldyConst/yTrigLabelBase*Dy

              FPevalXUnit15/(Right-Left)
              FPevalYUnit6/(Top-Bottom)

              usepackageetoolbox
              makeatletter
              patchcmdpst@@vlabels
              vbox to -psk@ylabelOffset
              YAxis@labelHook@codevbox to -psk@ylabelOffset
              FailedToPatch
              define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
              patchcmdpst@@hlabels
              ifcasepsk@xlabelPos
              XAxis@labelHook@codeifcasepsk@xlabelPos
              FailedToPatch
              define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
              psset
              ExecuteBeforeYLabels=,
              ExecuteBeforeXLabels=,

              makeatother

              psset

              xunit=XUnit,
              yunit=YUnit,
              dx=dx,
              Dx=Dx,
              dy=dy,
              Dy=Dy,
              xtrigLabels,
              ytrigLabels,
              xtrigLabelBase=xTrigLabelBase,
              ytrigLabelBase=yTrigLabelBase,
              showorigin=false,
              ExecuteBeforeYLabels=defpisqrt3,
              % ExecuteBeforeXLabels=defpisqrt3,


              begindocument
              beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
              psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
              %defpisqrt3
              psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
              endpspicture
              enddocument





              share|improve this answer

























                5












                5








                5







                I don't think there is (that is, I didn't find) a built-in way to do that. With etoolbox you can patch the code for the x and y labels to add arbitrary definitions:



                usepackageetoolbox
                makeatletter
                patchcmdpst@@vlabels
                vbox to -psk@ylabelOffset
                YAxis@labelHook@codevbox to -psk@ylabelOffset
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
                patchcmdpst@@hlabels
                ifcasepsk@xlabelPos
                XAxis@labelHook@codeifcasepsk@xlabelPos
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
                psset
                ExecuteBeforeYLabels=,
                ExecuteBeforeXLabels=,

                makeatother


                then you just need:



                pssetExecuteBeforeYLabels=defpisqrt3



                enter image description here




                Full code:



                documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
                usepackagepst-plot,pst-calculate
                usepackage[nomessages]fp

                FPsetEPSILON0.3

                FPevalConstroot(2,3)

                FPevalLeft0-pi
                FPevalRight2*pi

                FPevalTopConst
                FPevalBottom0-Const

                FPsetxTrigLabelBase4
                FPsetyTrigLabelBase3

                FPsetDx1
                FPsetDy1

                FPevaldxpi/xTrigLabelBase*Dx
                FPevaldyConst/yTrigLabelBase*Dy

                FPevalXUnit15/(Right-Left)
                FPevalYUnit6/(Top-Bottom)

                usepackageetoolbox
                makeatletter
                patchcmdpst@@vlabels
                vbox to -psk@ylabelOffset
                YAxis@labelHook@codevbox to -psk@ylabelOffset
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
                patchcmdpst@@hlabels
                ifcasepsk@xlabelPos
                XAxis@labelHook@codeifcasepsk@xlabelPos
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
                psset
                ExecuteBeforeYLabels=,
                ExecuteBeforeXLabels=,

                makeatother

                psset

                xunit=XUnit,
                yunit=YUnit,
                dx=dx,
                Dx=Dx,
                dy=dy,
                Dy=Dy,
                xtrigLabels,
                ytrigLabels,
                xtrigLabelBase=xTrigLabelBase,
                ytrigLabelBase=yTrigLabelBase,
                showorigin=false,
                ExecuteBeforeYLabels=defpisqrt3,
                % ExecuteBeforeXLabels=defpisqrt3,


                begindocument
                beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
                psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
                %defpisqrt3
                psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
                endpspicture
                enddocument





                share|improve this answer













                I don't think there is (that is, I didn't find) a built-in way to do that. With etoolbox you can patch the code for the x and y labels to add arbitrary definitions:



                usepackageetoolbox
                makeatletter
                patchcmdpst@@vlabels
                vbox to -psk@ylabelOffset
                YAxis@labelHook@codevbox to -psk@ylabelOffset
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
                patchcmdpst@@hlabels
                ifcasepsk@xlabelPos
                XAxis@labelHook@codeifcasepsk@xlabelPos
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
                psset
                ExecuteBeforeYLabels=,
                ExecuteBeforeXLabels=,

                makeatother


                then you just need:



                pssetExecuteBeforeYLabels=defpisqrt3



                enter image description here




                Full code:



                documentclass[pstricks,border=3pt 3pt 15pt 15pt,12pt]standalone
                usepackagepst-plot,pst-calculate
                usepackage[nomessages]fp

                FPsetEPSILON0.3

                FPevalConstroot(2,3)

                FPevalLeft0-pi
                FPevalRight2*pi

                FPevalTopConst
                FPevalBottom0-Const

                FPsetxTrigLabelBase4
                FPsetyTrigLabelBase3

                FPsetDx1
                FPsetDy1

                FPevaldxpi/xTrigLabelBase*Dx
                FPevaldyConst/yTrigLabelBase*Dy

                FPevalXUnit15/(Right-Left)
                FPevalYUnit6/(Top-Bottom)

                usepackageetoolbox
                makeatletter
                patchcmdpst@@vlabels
                vbox to -psk@ylabelOffset
                YAxis@labelHook@codevbox to -psk@ylabelOffset
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeYLabels[]defYAxis@labelHook@code#1
                patchcmdpst@@hlabels
                ifcasepsk@xlabelPos
                XAxis@labelHook@codeifcasepsk@xlabelPos
                FailedToPatch
                define@key[psset]pst-plotExecuteBeforeXLabels[]defXAxis@labelHook@code#1
                psset
                ExecuteBeforeYLabels=,
                ExecuteBeforeXLabels=,

                makeatother

                psset

                xunit=XUnit,
                yunit=YUnit,
                dx=dx,
                Dx=Dx,
                dy=dy,
                Dy=Dy,
                xtrigLabels,
                ytrigLabels,
                xtrigLabelBase=xTrigLabelBase,
                ytrigLabelBase=yTrigLabelBase,
                showorigin=false,
                ExecuteBeforeYLabels=defpisqrt3,
                % ExecuteBeforeXLabels=defpisqrt3,


                begindocument
                beginpspicture(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)
                psplot[algebraic,linecolor=red,plotpoints=100,linewidth=2pslinewidth]LeftRightConst*sin(x)
                %defpisqrt3
                psaxes<->(0,0)(pscalculateLeft-EPSILON,pscalculateBottom-EPSILON)(pscalculateRight+EPSILON,pscalculateTop+EPSILON)[$x$,0][$y$,90]
                endpspicture
                enddocument






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 6 hours ago









                Phelype OleinikPhelype Oleinik

                27.1k54793




                27.1k54793



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f489995%2fhow-to-rename-pi-as-another-value-only-for-y-axis-without-affecting-pi-used-in%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Log på Navigationsmenu

                    Wonderful Copenhagen (sang) Eksterne henvisninger | NavigationsmenurSide på frankloesser.comWonderful Copenhagen

                    Detroit Tigers Spis treści Historia | Skład zespołu | Sukcesy | Członkowie Baseball Hall of Fame | Zastrzeżone numery | Przypisy | Menu nawigacyjneEncyclopedia of Detroit - Detroit TigersTigers Stadium, Detroit, MITigers Timeline 1900sDetroit Tigers Team History & EncyclopediaTigers Timeline 1910s1935 World Series1945 World Series1945 World Series1984 World SeriesComerica Park, Detroit, MI2006 World Series2012 World SeriesDetroit Tigers 40-Man RosterDetroit Tigers Coaching StaffTigers Hall of FamersTigers Retired Numberse