Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

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)

http://i.imgur.com/iYUcRrh.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)

share|improve this question

marked as duplicate by bobthechemist, belisarius, m_goldberg, István Zachar, rm -rf Jan 30 at 17:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
ListLogLinearPlot... –  rasher Jan 29 at 19:54
    
reference.wolfram.com/mathematica/ref/ListLogLinearPlot.html these appear not to be straight lines –  user3111684 Jan 29 at 19:55
    
ListLogLinearPlot[Table[{0, 80}, {900, 40}], Joined -> True] does not seem to be working?? –  user3111684 Jan 29 at 19:59
1  
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. –  Sjoerd C. de Vries Jan 29 at 23:44
1  
To the closers: most of the answers are easily found in the documentation, but using a different log base in plotting is not. –  Sjoerd C. de Vries Jan 30 at 6:33

1 Answer 1

See, e.g.:

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

enter image description here

share|improve this answer
    
what about the N^1.85 part? is there a way to specify the log base as being 1.85? –  user3111684 Jan 29 at 20:14
    
also how do you add the y coordinates? –  user3111684 Jan 29 at 20:16
    
@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. –  rasher Jan 29 at 20:24
    
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. –  user3111684 Jan 29 at 20:48
    
@user3111684:MM has excellent and copious documentation. Refer to it, make an attempt, and if you still have problems post the code and results. –  rasher Jan 29 at 20:50

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