# Re: [Scilab-users] Scatter plot with fixed marker dimension and overlap analysis

```Thanks Charles, but can you be more precise about your sentence

2. is there a way to calculate the overlap on the area through the chart with a
heat map for example?```
```
because the “heat map” is just a way of representing a scalar field, and what
is exactly this scalar field you are interested in is not that clear.

My first understanding was that you were interested in the total covered area,
which is associated to a binary map. If you are interested in a quantified map
counting for each (x,y) coordinate pair the number of impacts covering it, then
you can define such a map, but what is the computation to compute “the overlap
on the area”.

S.

Le 20 mars 2023 à 13:58, charles marcotte <charles.marco...@gmail.com> a écrit :

﻿
Stephane, Federico,

Thank you very much for answering my questions.
I have seen the first message from Federico and implemented such an idea.
So now I have a working impact visualization.

I had first to translate the curves onto a matrix, then for the adjacent points
part of the impact area were colored. Using Matplot it was easy to plot the
matrix but annoyingly it is mixing up x and y but nothing horrible for now.
I have not yet implemented the heat map. I will read through the comments.
Probably not the most efficient code but I started scilab one week ago and last
time I used Matlab was more than 20 years ago so I am ok with that.

//modeling the impact
mega(x1(1,i),y1(1,i))=8
mega(x2(1,i),y2(1,i))=8
for q=1:1:R
for m=0:0.03:%pi
tempx1=round(x1(1,i)+q*cos(m));
tempy1=round(y1(1,i)+q*sin(m));
tempx2=round(x2(1,i)+q*cos(m));
tempy2=round(y2(1,i)+q*sin(m));
if tempx1<0 | tempy1<0 then
else
mega(tempx1,tempy1)=8
end
if tempx2<0 | tempy2<0 then
else
mega(tempx2,tempy2)=8
end
end
end
end
Matplot(mega)
end

On Thu, Mar 16, 2023 at 11:45 AM charles marcotte
<charles.marco...@gmail.com<mailto:charles.marco...@gmail.com>> wrote:
Hello,

I have 2d scatter plot where each marker represents an impact point. The impact
point has a defined area.
1.  I am trying to assign each point the impact area to visualize how much of
the surface is impacted.
Defining the marker size does not work because I change the scale between
simulations and I can't find a definition of the marker size vs diameter or
perimeter.

2. is there a way to calculate the overlap on the area through the chart with a
heat map for example?

Thank you
Charles

This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential and/or
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data
privacy policy as described on our website. Should you have any questions
https://www.3ds.com/privacy-policy/contact/

_______________________________________________
users mailing list - users@lists.scilab.org
https://lists.scilab.org/mailman/listinfo/users

This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential and/or
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.

Please be informed that your personal data are processed according to our data
privacy policy as described on our website. Should you have any questions
```_______________________________________________