"""
2D Histogram Scatter Plot
-------------------------
This example shows how to make a 2d histogram scatter plot.
"""
# category: distributions
import altair as alt
from altair.datasets import data

source = data.movies.url

alt.Chart(source).mark_circle().encode(
    alt.X('IMDB Rating:Q').bin(),
    alt.Y('Rotten Tomatoes Rating:Q').bin(),
    size='count()'
)
