PC Review


Reply
Thread Tools Rate Thread

Excel ScatterPlots

 
 
lindsay.osco@gmail.com
Guest
Posts: n/a
 
      27th Jun 2007
I am graphing data points in a scatter plot. Some of the data points
are repeats throughout the data set.

Is there any way to make the size of the dots (data points on the
graph) that I am using depend upon the number of same data points I
have in my data set?

I want the graph to be able to reflect that some points are repeated
many times, not just a single point like all the others.


Thanks!

 
Reply With Quote
 
 
 
 
Del Cotter
Guest
Posts: n/a
 
      27th Jun 2007
On Wed, 27 Jun 2007, in microsoft.public.excel.charting,
(E-Mail Removed) said:

>I am graphing data points in a scatter plot. Some of the data points
>are repeats throughout the data set.
>
>Is there any way to make the size of the dots (data points on the
>graph) that I am using depend upon the number of same data points I
>have in my data set?
>
>I want the graph to be able to reflect that some points are repeated
>many times, not just a single point like all the others.


How many points might there be, maximum?

--
Del Cotter
NB Personal replies to this post will send email to (E-Mail Removed),
which goes to a spam folder-- please send your email to del3 instead.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBNYW5zZmllbGQ=?=
Guest
Posts: n/a
 
      2nd Jul 2007
If you're willing to use a macro, the procedure below will flag any
duplicates. Copy the macro into a standard module. Click on the XY chart
and run the macro.

Sub ShowXYDuplicatePoints()

Application.ScreenUpdating = False

Dim Cht As Chart
Dim Srs As Series
Dim Pt As Points
Dim nPts As Long, iPt As Long
Dim Test As Variant
Dim UniqueValues As New Collection

Set Cht = ActiveChart

For Each Srs In Cht.SeriesCollection
With Srs
nPts = .Points.Count
For iPt = 1 To nPts
Test = Srs.XValues(iPt) & Srs.Values(iPt)
UniqueValues.Add Acct, CStr(Test)
On Error GoTo ErrHandler:
If iPt + 1 > nPts Then
ActiveChart.Deselect
Exit Sub
End If
Label1:
Next
End With
Next Srs

ErrHandler:
Srs.Points(iPt).MarkerSize = 10
Srs.Points(iPt).MarkerBackgroundColorIndex = 3
Srs.Points(iPt).MarkerForegroundColorIndex = 3
If iPt + 1 > nPts Then
ActiveChart.Deselect
Exit Sub
End If
Resume Label1:

End Sub

--
John Mansfield
http://cellmatrix.net





"(E-Mail Removed)" wrote:

> I am graphing data points in a scatter plot. Some of the data points
> are repeats throughout the data set.
>
> Is there any way to make the size of the dots (data points on the
> graph) that I am using depend upon the number of same data points I
> have in my data set?
>
> I want the graph to be able to reflect that some points are repeated
> many times, not just a single point like all the others.
>
>
> Thanks!
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
xy scatterplots chip smith Microsoft Excel Worksheet Functions 1 8th Nov 2003 01:45 PM
xy scatterplots chip smith Microsoft Excel Misc 1 7th Nov 2003 05:58 AM
creating scatterplots David Schwartz Microsoft Excel Discussion 2 4th Nov 2003 07:20 PM
are scatterplots possible? David Schwartz Microsoft Excel Charting 2 4th Nov 2003 06:45 PM
Re: Labelling data points on scatterplots Jon Peltier Microsoft Excel Charting 0 2nd Oct 2003 05:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:34 PM.