0
$\begingroup$

I am trying to use the LogLinearPlot in Mathematica 9 to create an x-axis only logarithmic plot that looks like this (Based on N^1.85 graphing paper) http://pingfire.com/

What it does is model a curve for theoretical residual pressures and their corresponding expected flow rates in gallons per minute (based on exponential friction loss in water moving through piping), but the graph paper displays this in a straight line format that is easier to interpret values from.

It appears that LogLinearPlot is what I am looking for, but the samples show it using a function of x, not a list of x,y points. How do I plug in a table of x,y points into the LogLinearPlot function?

Here is an example from pingfire.com showing the straight line I'm trying to get from two points (Static pressure which is x,y of 0,80 and residual pressure which is x,y of 900,40)

https://i.sstatic.net/FpUZ1.png

Using that image, you can interpolate what the pressure/flow will be at any gpm on the graph (100 to 1000), for example, 31 pressure at 1000 gpm (the end of the graph)

$\endgroup$
6
  • $\begingroup$ ListLogLinearPlot... $\endgroup$
    – ciao
    Commented Jan 29, 2014 at 19:54
  • $\begingroup$ reference.wolfram.com/mathematica/ref/ListLogLinearPlot.html these appear not to be straight lines $\endgroup$ Commented Jan 29, 2014 at 19:55
  • $\begingroup$ ListLogLinearPlot[Table[{0, 80}, {900, 40}], Joined -> True] does not seem to be working?? $\endgroup$ Commented Jan 29, 2014 at 19:59
  • 1
    $\begingroup$ ListLogLinearPlot[Table[{0, 80}, {900, 40}], Joined -> True] doesn't work for two reasons: the Table syntax is nonsense (refer to the documentation), and in a loglinear plot you can't have zeros. $\endgroup$ Commented Jan 29, 2014 at 23:44
  • 1
    $\begingroup$ To the closers: most of the answers are easily found in the documentation, but using a different log base in plotting is not. $\endgroup$ Commented Jan 30, 2014 at 6:33

1 Answer 1

0
$\begingroup$

See, e.g.:

ListLogLinearPlot[Table[{x, Log[x]}, {x, 1, 100}], Joined -> True]

enter image description here

$\endgroup$
5
  • $\begingroup$ what about the N^1.85 part? is there a way to specify the log base as being 1.85? $\endgroup$ Commented Jan 29, 2014 at 20:14
  • $\begingroup$ also how do you add the y coordinates? $\endgroup$ Commented Jan 29, 2014 at 20:16
  • $\begingroup$ @user3111684: Please update your OP with the code you're trying, and the result. This is not a "do my work for me" site, it is a place to get help with attempts/problems/issues with implementing things in MM. $\endgroup$
    – ciao
    Commented Jan 29, 2014 at 20:24
  • $\begingroup$ I didn't ask you to do it for me, I asked how. Instructions, not pictures. This is a question and answer site, not a question and complain about the question site. $\endgroup$ Commented Jan 29, 2014 at 20:48
  • $\begingroup$ @user3111684:MM has excellent and copious documentation. Refer to it, make an attempt, and if you still have problems post the code and results. $\endgroup$
    – ciao
    Commented Jan 29, 2014 at 20:50

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