Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stan Altshuller
 
Posts: n/a
Default Plot a line? Set dymanic axis Max min

Hi all,
two questions:

1. I have a scatter plot of returns and I want to add not a trend line but
simply x=y line to my plot (and other equations)
Any way to do this?

2. I need to control both my x and y axis, I want to max and min and scale
numbers to be linked to a cell in my spreadsheet instead of simply being
static values or auto.

THANKS!
Stan


  #2   Report Post  
John Mansfield
 
Posts: n/a
Default

Stan,

Regarding question 1, you can add equations to charts by plotting points in
an Excel worksheet and then charting those points. For more detailed
information, Stephen bullen has some excellent examples of how to plot
functions . . .

http://www.bmsltd.ie/Excel/Default.htm

Regarding question 2, please refer to Jon's site for how to create dynamic
charts . . .

http://peltiertech.com/Excel/Charts/...umnChart1.html

http://peltiertech.com/Excel/Charts/Dynamics.html

The entry below might help with setting a dynamic Y axis via code . . .

http://www.pdbook.com/index.php/excel/tie_y_axes/


"Stan Altshuller" wrote:

Hi all,
two questions:

1. I have a scatter plot of returns and I want to add not a trend line but
simply x=y line to my plot (and other equations)
Any way to do this?

2. I need to control both my x and y axis, I want to max and min and scale
numbers to be linked to a cell in my spreadsheet instead of simply being
static values or auto.

THANKS!
Stan



  #3   Report Post  
Don Guillett
 
Posts: n/a
Default

Maybe this idea will help.

Private Sub Chart_Activate()

ActiveChart.Axes(xlValue).Select
With ActiveChart.Axes(xlValue)
.MinimumScale = RANGE("B4")'bottom
.MaximumScale = RANGE("B5")'Top
.MinorUnitIsAuto = True
.MajorUnitIsAuto = True
' .MajorUnit = 500
.Crosses = xlAutomatic
.ReversePlotOrder = False
.ScaleType = xlLinear
.DisplayUnit = xlNone
End With
ActiveChart.Deselect
Application.ScreenUpdating = True
End Sub



--
Don Guillett
SalesAid Software

"Stan Altshuller" wrote in message
...
Hi all,
two questions:

1. I have a scatter plot of returns and I want to add not a trend line but
simply x=y line to my plot (and other equations)
Any way to do this?

2. I need to control both my x and y axis, I want to max and min and scale
numbers to be linked to a cell in my spreadsheet instead of simply being
static values or auto.

THANKS!
Stan




  #4   Report Post  
Jon Peltier
 
Posts: n/a
Default

Stan -

1. Plot a formula

You could put some X values into a column, use the formula to compute Y values in
the next column, then copy this range, select the chart, use Paste Special from the
Edit menu to add a new series, with categories in the first column.

Here are some fancier examples that bypass the worksheet:

http://oaltd.co.uk/DLCount/DLCount.a...e=ChtFrmla.zip
http://tushar-mehta.com/excel/softwa...ger/index.html

2. Linking axis parameters to cells

How to:

http://peltiertech.com/Excel/Charts/...nkToSheet.html

Add-in that does it for you:

http://tushar-mehta.com/excel/softwa...art/index.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Stan Altshuller wrote:

Hi all,
two questions:

1. I have a scatter plot of returns and I want to add not a trend line but
simply x=y line to my plot (and other equations)
Any way to do this?

2. I need to control both my x and y axis, I want to max and min and scale
numbers to be linked to a cell in my spreadsheet instead of simply being
static values or auto.

THANKS!
Stan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
create space in line chart between points, linked to pivot table Mike -Z- Charts and Charting in Excel 1 December 7th 04 09:39 PM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM
graphing two series on x axis Ladislav Ligart Charts and Charting in Excel 2 December 6th 04 06:50 PM
Linking Axis Labels Neil Charts and Charting in Excel 2 December 5th 04 09:04 PM
Secondary Axis? AlCamp Charts and Charting in Excel 3 December 4th 04 02:28 PM


All times are GMT +1. The time now is 12:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"