# Feature request: scatter plot y=x line

**URL:** <https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150>\
**Category:** W&B Help\
**Tags:** dashboard, wandb\
**Created:** [October 1, 2023, 10:44am UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150 "2023-10-01T10:44:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![noamsiegel](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@noamsiegel](https://community.wandb.ai/u/noamsiegel)\
**Post date:** [October 1, 2023, 10:44am UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/1 "2023-10-01T10:44:32Z")

</div>

Hi

In the workspace charts, it would be helpful to plot the y=x line on a scatter plot, in a black dashed line. That would allow us to see which dots have improved upon a baseline, and which dots are worse than a baseline.

Thanks

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/c/ca7944041abf34bc6e56f65588e10fa798ca3b43.png)

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [October 2, 2023, 10:09am UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/2 "2023-10-02T10:09:56Z")

</div>

Hi @noamsiegel, thanks for writing in! Would you mind sharing a link to that plot so I can take a look at it and see what’s possible at this moment?

---

<div class="post-metadata">

**Author:** ![noamsiegel](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@noamsiegel](https://community.wandb.ai/u/noamsiegel)\
**Post date:** [October 4, 2023, 6:17am UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/3 "2023-10-04T06:17:26Z")

</div>

Hi, thanks for following up.  
I don’t have it anymore. It was a scatter plot in the project workspace. The annotation options were the following four, but none of them address the y=x diagonal line. ![image.png](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/6/6f1710799610f2f0849aeb3093828a3bdc2bb0b4.png)

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [October 4, 2023, 9:15am UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/4 "2023-10-04T09:15:21Z")

</div>

Hi @noamsiegel, thanks for sharing this! I would recommend you to use a Weave plot as this allows you to add that line easily ([here](https://wandb.ai/luis_team_test/Plotting%20Experiments%202/reports/Untitled-Report--Vmlldzo1NTgxMjQz?accessToken=jewyou70yfs8o3f4jjzgj0wdrxsp67izd8fdq7kpbpo7led2ujnb1a096kygm0bv) is an example). You just need to click on Add Panel → Weave and access the history of runs with `runs.history.concat` and then click on the panel settings to render it as a plot and customize as desired. Please let me know if this would be helpful for you!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/6/6a4ee4550401810b4c426d76b925c55f148700ca.png)

---

<div class="post-metadata">

**Author:** ![noamsiegel](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@noamsiegel](https://community.wandb.ai/u/noamsiegel)\
**Post date:** [October 4, 2023, 12:21pm UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/5 "2023-10-04T12:21:06Z")

</div>

Thanks for the tip!

I tried that, now I see the line but I don’t see the points:  
[https://wandb.ai/neurohelp/chimpanzee-UNetLightningModule/reports/Personalized-Models–Vmlldzo1NTgyNTUy#section-1](https://wandb.ai/neurohelp/chimpanzee-UNetLightningModule/reports/Personalized-Models--Vmlldzo1NTgyNTUy#section-1)

 ![image.png](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/4/47a59cc36253b5515ffd7ea860025b981e6eaf3d.png)

And in the report you will see the original scatter plot for reference:

 ![image.png](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/9/92ac2956a009783d5dc2756f7feaff8a08440eeb.png)

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [October 4, 2023, 1:04pm UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/6 "2023-10-04T13:04:57Z")

</div>

I see, thank you so much for sharing this @noamsiegel! I just took a look at this, that behavior is because those metrics are logged separately so the history contains them in different rows as you can see in the following images:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/9/9529f0b27fb2848330b61f67560078afe26900e3.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/8/80991147635ccca1f2190c84aea039685df36bd8.png)

You can use a Weave expression like this `[{"baseline/false_alarms_in_24_hours": runs.history.concat["baseline/false_alarms_in_24_hours"].dropna, "enhanced/false_alarms_in_24_hours": runs.history.concat["enhanced/false_alarms_in_24_hours"].dropna}]` to remove nulls from both metrics and then create a new table and plot it, this will show your points

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/c/c91e1b47e003cee778e542ea9438529e805681b4.png)

Let me know if that helps!

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [October 6, 2023, 3:09pm UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/7 "2023-10-06T15:09:25Z")

</div>

Hey @noamsiegel, just wanted to follow up here and ask if the solution I proposed would be helpful for you. Please let me know if I can help you in any other way!

---

<div class="post-metadata">

**Author:** ![luis\_bergua](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@luis\_bergua](https://community.wandb.ai/u/luis_bergua)\
**Post date:** [October 10, 2023, 3:21pm UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/8 "2023-10-10T15:21:10Z")

</div>

Hi @noamsiegel , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [December 9, 2023, 7:40pm UTC](https://community.wandb.ai/t/feature-request-scatter-plot-y-x-line/5150/10 "2023-12-09T19:40:11Z")

</div>

Closed on December 9, 2023, 7:40pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
