Earlier question: Weird bodegraph output

I fixed the red color on the axis in the .sty file, but my dB- and degree label is still on the axis, and not above. Also, I want to change the dB labels color, how do I do that? I've tried modifying the .sty file, but I can't find the right parameter.

1 Answer 1


Don't change the .sty file.

bodegraph sets up a series of styles that can be used to modify how things look, for example




    gnuplot def/.append style={prefix={}}, % Fixed the issue (prefix was 'gnuplot/\jobname/' before)
    semilog lines/.style={blue},
    semilog lines 2/.style={blue,dotted},
    semilog label y/.style={above,black}]



enter image description here

  • Thanks! I'm trying to plot this function: H(s) = \frac{sRC}{1 + sRC}, but I get an graph from 10^3 rad/s to 10^9, but Matlab gives me 10^-9 to 10^-6. Bodecode: {-\IntAmp{1}+\POAmp{25e-6}{25e-6}} Any tips? The Bode documentation isn't very helpful. Is there any better way to plot bode graphs?
    – wayl
    Mar 15, 2016 at 11:06
  • @wayl That's a different question altogether, so I recommend making a new post. I don't even know what a Bode graph is, but in general you can plot a lot of stuff with the pgfplots package. Mar 15, 2016 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.