I have a LogLogPlot and I tried @Mr.Wizard relabel function mentioned in the comment. I have two questions:

  1. It worked in the second figure but the in the first figure the x axis the minor ticks disappear.
  2. I don't want that much ticks in the Y axis in the second figure. How should I manually change the ticks using relabel function?

enter image description here

d1=(5.14148*10^9 v)/(7.00589*10^8 + 1.5758*10^16 v^2) d2=(7.69843*10^6 v)/(7.00589*10^8 + 2.86163*10^12 v^2) LogLogPlot[Evaluate@d1,{v,10^-8,1},PlotRange->{10^-6,10^-2}]//relabel LogLogPlot[Evaluate@d2,{v,10^-4,1},PlotRange->{10^-6,10^-3}]//relabel

  • 2
    $\begingroup$ You might try looking at Mark Caprio's SciDraw package for Mathematica. There is support in it for many flavours of tick marks. I just finished writing a book and did all the figures in it using SciDraw. Have a look at scidraw.nd.edu. $\endgroup$ – Keith Sep 5 '16 at 15:08
  • $\begingroup$ The relabel function I provided in (5371) does this in 10.1.0, e.g. LogLogPlot[{x^2, x^3, x^4, x^5}, {x, 1, 10^4}, PlotLegends -> "Expressions"] // relabel yields i.stack.imgur.com/oZApI.png. Does that not work for you? $\endgroup$ – Mr.Wizard Sep 5 '16 at 15:12
  • $\begingroup$ @Keith Actually I tried this function but it bugs me is that it is not very intuitive in the sense that I need to adjust the range of x to fit this function. $\endgroup$ – yangyang Sep 5 '16 at 15:21
  • $\begingroup$ I marked this question as a duplicate in light of your comment "Ah. Great. I didn't see your solution. It worked perfect." However I see that you just deleted that comment; if you found that my solution fails please edit your question to explain in what way it fails. $\endgroup$ – Mr.Wizard Sep 5 '16 at 15:24
  • 1
    $\begingroup$ @Mr.Wizard It worked. But I need to remove some of the ticks. In my case there are 5*10^-6 5*10^-5 ... which I want to remove. Could you elaborate how to use your function to remove some of the ticks? $\endgroup$ – yangyang Sep 5 '16 at 15:26

Your Answer

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

Browse other questions tagged or ask your own question.