f

#### Plotting with log(log(x))

```Hi,

I am trying to make an extreme values plot for hydrological data
(annual maximum series for rainfall depth), and require an x-axis in
terms of log(log(x)) while the y-axis must remain linear. I am having
a great deal of trouble making this type of plot, and was wondering
if anyone could let me know how to do it?

I've been trying to do it in Minitab, though also have access to
Matlab, Maple, and R. However, I am not very good with any of these
pieces of software.

Any help would be greatly appreciated. I am *very* desperate to get
this done and over with, so if you can let me know how to do it in
Matlab, I would be grateful.

Thank you,
Wojciech Gryc
```
 0
wojciech1 (15)
10/31/2005 8:04:35 AM
comp.soft-sys.matlab 211266 articles. 25 followers. lunamoonmoon (257) is leader.

2 Replies
543 Views

Similar Articles

[PageSpeed] 19

```Wojciech wrote:
> Hi,
>
> I am trying to make an extreme values plot for hydrological data
> (annual maximum series for rainfall depth), and require an x-axis in
> terms of log(log(x)) while the y-axis must remain linear. I am having
> a great deal of trouble making this type of plot, and was wondering
> if anyone could let me know how to do it?
>
> I've been trying to do it in Minitab, though also have access to
> Matlab, Maple, and R. However, I am not very good with any of these
> pieces of software.
>
> Any help would be greatly appreciated. I am *very* desperate to get
> this done and over with, so if you can let me know how to do it in
> Matlab, I would be grateful.
>
> Thank you,
> Wojciech Gryc

In Matlab you may have some luck with the 'semilogx' command.

Type:
help semilogx

Here's an example of its use:

\$ Define the domain
x = 0.01:.1:10;

% Define the function
y = log10(x);

% Plot on a linear and log scale
subplot(2,1,1)
plot(x,y)
title('log(x) on a Linear Scale')
subplot(2,1,2)
semilogx(x,y)
title('log(x) on a Log Scale')
```
 0
crema2 (412)
11/1/2005 5:26:59 AM
```Hi,

Thanks very much for your help! This works great.

Thanks again,
Wojciech

Matt Crema wrote:
>
>
> Wojciech wrote:
>> Hi,
>>
>> I am trying to make an extreme values plot for hydrological
data
>> (annual maximum series for rainfall depth), and require an
x-axis
> in
>> terms of log(log(x)) while the y-axis must remain linear. I am
> having
>> a great deal of trouble making this type of plot, and was
> wondering
>> if anyone could let me know how to do it?
>>
>> I've been trying to do it in Minitab, though also have access
to
>> Matlab, Maple, and R. However, I am not very good with any of
> these
>> pieces of software.
>>
>> Any help would be greatly appreciated. I am *very* desperate to
> get
>> this done and over with, so if you can let me know how to do it
> in
>> Matlab, I would be grateful.
>>
>> Thank you,
>> Wojciech Gryc
>
> In Matlab you may have some luck with the 'semilogx' command.
>
> Type:
> help semilogx
>
> Here's an example of its use:
>
> \$ Define the domain
> x = 0.01:.1:10;
>
> % Define the function
> y = log10(x);
>
> % Plot on a linear and log scale
> subplot(2,1,1)
> plot(x,y)
> title('log(x) on a Linear Scale')
> subplot(2,1,2)
> semilogx(x,y)
> title('log(x) on a Log Scale')
>
```
 0
wojciech1 (15)
11/7/2005 12:21:08 AM