# Symmetry shading hvplot

**URL:** <https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372>\
**Category:** hvPlot\
**Created:** [November 9, 2023, 8:22am UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372 "2023-11-09T08:22:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rh1](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/r/fbc32d/32.png) [@rh1](https://discourse.holoviz.org/u/rh1)\
**Post date:** [November 9, 2023, 8:22am UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372/1 "2023-11-09T08:22:23Z")

</div>

Hi all,  
Is that any functionality to have symmetry shading as we have in power bi scatter plot?

 ![image](https://discourse.holoviz.org/uploads/default/original/2X/5/53d479f6bceed6a02ad555c89fc599c6e166b525.png)

> **[Scatter, bubble, and dot plot charts in Power BI - Power BI](https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-scatter?tabs=powerbi-desktop)**
>
> Learn how to use scatter charts, dot plot charts, and bubble charts in Power BI Desktop and the Power BI service.

thanks

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [November 9, 2023, 11:18am UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372/2 "2023-11-09T11:18:18Z")

</div>

Never used Power BI, but sounds like `symmetric=True` does what you want. [Customization — hvPlot 0.9.0 documentation](https://hvplot.holoviz.org/user_guide/Customization.html)

---

<div class="post-metadata">

**Author:** ![rh1](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/r/fbc32d/32.png) [@rh1](https://discourse.holoviz.org/u/rh1)\
**Post date:** [November 9, 2023, 3:53pm UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372/3 "2023-11-09T15:53:48Z")

</div>

> [@ahuang11](#):
>
> symmetric=True

Hi @ahuang11 thanks for your suggestion however I couldn’t get anything. I just put symentric = True and there is no shading plot at all, actually what I want is I have a plot of point forecast something then I have 1:1 diagonal line or upper and lower bound as specify then all points forecast below of the area means our forecast is too optimistic and above means our previous forecast is pesimistic because in actual we get higher that forecast.

I am copy the explanation form microsoft power bi regarding symmetry shadding  
Symmetry shading is a new analytics feature that allows you to easily see which points have a higher value of the x-axis measure compared to the y-axis measure and vice versa. When you turn symmetry shading on in the Analytics pane, we’ll shade the background of your scatter chart symmetrically based on your current axis bounds. This is a very quick way to identify which measure a data point favors, especially when you have a different axis range for your x- and y-axis

![image](https://discourse.holoviz.org/uploads/default/original/2X/1/194cefe6035bd0b71cb77f0dd371d5a38b25cdce.jpeg)

> **[Power BI Desktop August Feature Summary](https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-august-2017-feature-summary/)**
>
> This month we are very excited to release our What if feature, which we previewed in the Data Insights Summit keynote back in June. We’ve also added even more features for our table and matrix visual, including a formatting option to show values on...

---

<div class="post-metadata">

**Author:** ![rh1](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/r/fbc32d/32.png) [@rh1](https://discourse.holoviz.org/u/rh1)\
**Post date:** [November 14, 2023, 4:05pm UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372/4 "2023-11-14T16:05:45Z")

</div>

Hi @ahuang11 , I just found probably we can use patching in matplot or multipolygon in bokeh plot. however how we can combine multipolygon in hv scatter plot. can we?  
using bokeh for example:

```auto
# import modules
import panel as pn
pn.extension()
from bokeh.io import output_file, show
from bokeh.layouts import row
from bokeh.plotting import figure
from bokeh.io import output_notebook
import numpy as np
import random

output_notebook()
# create a new plot
# instantiating the figure object
fig1 = figure(title="Plot 1")

# coordinates
x = [[[[0, 5, 0, 0]]],
	
	[[[5, 0, 5]]]]
y = [[[[2.5, 2.5, 0, 2.5]]],
	
	[[[2.5, 0, 0]]]]

# color values of the polygons
color = ["red", "purple"]

# fill alpha values of the polygons
fill_alpha = 0.5

# plotting the graph
fig1.multi_polygons(x, y,
					color=color,
					fill_alpha=fill_alpha)

# the points to be plotted 
x = [1, 2, 3, 4, 5] 
y = [1, 2, 1, 2, 1.5] 
     
# plotting the graph 
fig1.scatter(x, y) 
      

# depict visualization
bokeh_pane = pn.pane.Bokeh(fig1, theme="dark_minimal")
bokeh_pane

```

 ![image](https://discourse.holoviz.org/uploads/default/original/2X/5/55f2ab525a3eba324598f69ff540818cdda99cd9.png)  
kindly please advise. thanks

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [November 15, 2023, 10:42am UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372/5 "2023-11-15T10:42:22Z")

</div>

Hi sorry I don’t quite understand your question, can you try rephrasing? Maybe this?  
[https://holoviews.org/reference/elements/matplotlib/Polygons.html](https://holoviews.org/reference/elements/matplotlib/Polygons.html)

---

<div class="post-metadata">

**Author:** ![rh1](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/r/fbc32d/32.png) [@rh1](https://discourse.holoviz.org/u/rh1)\
**Post date:** [November 15, 2023, 11:46am UTC](https://discourse.holoviz.org/t/symmetry-shading-hvplot/6372/6 "2023-11-15T11:46:27Z")

</div>

Hi @ahuang11 , sorry to make confuse.

thanks for your link. will try to use it.
