Skip to main content
100%

julia PyPlot example

✓ Published0🌍 Public
Aandyreagan
Last edited Jun 4, 2015
Created on Jun 4, 2015

This example uses Julia’s PyPlot wrapper to create a single polygon patch on a fixed 0-to-1 coordinate plane. It generates four random points with `rand(4,2)`, passes them to Matplotlib’s `patches.Polygon`, and adds the patch to an axes object via `ax[:add_patch]`. The polygon is drawn with no edge color, a blue face color, and rasterization enabled. The plot sets explicit x- and y-axis limits to [0,1], and empty axis labels, resulting in a minimal, unannotated visual of a random quadrilateral.

AI-generated description

Similar vizzes