MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / example_data

Function example_data

DemoPrograms/Demo_Matplotlib_Browser_Paned.py:539–586  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537 return verts
538
539 def example_data():
540 # The following data is from the Denver Aerosol Sources and Health study.
541 # See doi:10.1016/j.atmosenv.2008.12.017
542 #
543 # The data are pollution source profile estimates for five modeled
544 # pollution sources (e.g., cars, wood-burning, etc) that emit 7-9 chemical
545 # species. The radar charts are experimented with here to see if we can
546 # nicely visualize how the modeled source profiles change across four
547 # scenarios:
548 # 1) No gas-phase species present, just seven particulate counts on
549 # Sulfate
550 # Nitrate
551 # Elemental Carbon (EC)
552 # Organic Carbon fraction 1 (OC)
553 # Organic Carbon fraction 2 (OC2)
554 # Organic Carbon fraction 3 (OC3)
555 # Pyrolized Organic Carbon (OP)
556 # 2)Inclusion of gas-phase specie carbon monoxide (CO)
557 # 3)Inclusion of gas-phase specie ozone (O3).
558 # 4)Inclusion of both gas-phase species is present...
559 data = [
560 ['Sulfate', 'Nitrate', 'EC', 'OC1', 'OC2', 'OC3', 'OP', 'CO', 'O3'],
561 ('Basecase', [
562 [0.88, 0.01, 0.03, 0.03, 0.00, 0.06, 0.01, 0.00, 0.00],
563 [0.07, 0.95, 0.04, 0.05, 0.00, 0.02, 0.01, 0.00, 0.00],
564 [0.01, 0.02, 0.85, 0.19, 0.05, 0.10, 0.00, 0.00, 0.00],
565 [0.02, 0.01, 0.07, 0.01, 0.21, 0.12, 0.98, 0.00, 0.00],
566 [0.01, 0.01, 0.02, 0.71, 0.74, 0.70, 0.00, 0.00, 0.00]]),
567 ('With CO', [
568 [0.88, 0.02, 0.02, 0.02, 0.00, 0.05, 0.00, 0.05, 0.00],
569 [0.08, 0.94, 0.04, 0.02, 0.00, 0.01, 0.12, 0.04, 0.00],
570 [0.01, 0.01, 0.79, 0.10, 0.00, 0.05, 0.00, 0.31, 0.00],
571 [0.00, 0.02, 0.03, 0.38, 0.31, 0.31, 0.00, 0.59, 0.00],
572 [0.02, 0.02, 0.11, 0.47, 0.69, 0.58, 0.88, 0.00, 0.00]]),
573 ('With O3', [
574 [0.89, 0.01, 0.07, 0.00, 0.00, 0.05, 0.00, 0.00, 0.03],
575 [0.07, 0.95, 0.05, 0.04, 0.00, 0.02, 0.12, 0.00, 0.00],
576 [0.01, 0.02, 0.86, 0.27, 0.16, 0.19, 0.00, 0.00, 0.00],
577 [0.01, 0.03, 0.00, 0.32, 0.29, 0.27, 0.00, 0.00, 0.95],
578 [0.02, 0.00, 0.03, 0.37, 0.56, 0.47, 0.87, 0.00, 0.00]]),
579 ('CO & O3', [
580 [0.87, 0.01, 0.08, 0.00, 0.00, 0.04, 0.00, 0.00, 0.01],
581 [0.09, 0.95, 0.02, 0.03, 0.00, 0.01, 0.13, 0.06, 0.00],
582 [0.01, 0.02, 0.71, 0.24, 0.13, 0.16, 0.00, 0.50, 0.00],
583 [0.01, 0.03, 0.00, 0.28, 0.24, 0.23, 0.00, 0.44, 0.88],
584 [0.02, 0.00, 0.18, 0.45, 0.64, 0.55, 0.86, 0.00, 0.16]])
585 ]
586 return data
587
588 N = 9
589 theta = radar_factory(N, frame='polygon')

Callers 1

PyplotRadarChartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected