Skip to main content

An open source library for statistical plotting

Project description

Lets-Plot

official JetBrains project License MIT Latest Release

Lets-Plot is a multiplatform plotting library built on the principles of the Grammar of Graphics.

The library' design is heavily influenced by Leland Wilkinson work The Grammar of Graphics describing the deep features that underlie all statistical graphics.

This grammar [...] is made up of a set of independent components that can be composed in many different ways. This makes [it] very powerful because you are not limited to a set of pre-specified graphics, but you can create new graphics that are precisely tailored for your problem.

Grammar of Graphics for Python Latest Release

A bridge between R (ggplot2) and Python data visualization.
To learn more see the documentation site at lets-plot.org.

Grammar of Graphics for Kotlin Latest Release

Notebooks

Create plots in Kotlin Notebook, Datalore, Jupyter with Kotlin Kernel
or any other notebook that supports Kotlin Kernel.
To learn more see the Lets-Plot Kotlin API project at GitHub.

Compose Multiplatform

Embed Lets-Plot charts in Compose Multiplatform applications.
To learn more see the Lets-Plot Skia Frontend project at GitHub.

JVM and Kotlin/JS

Embed Lets-Plot charts in JVM (Swing, JavaFX) and Kotlin/JS applications.
To learn more see the Lets-Plot Kotlin API project at GitHub.

"Lets-Plot in SciView" plugin

JetBrains Plugins JetBrains plugins

Scientific mode in PyCharm and in IntelliJ IDEA provides support for interactive scientific computing and data visualization.

Lets-Plot in SciView plugin adds support for interactive plotting to IntelliJ-based IDEs with the Scientific mode enabled.

Note: The Scientific mode is NOT available in communinty editions of JetBrains IDEs.

Also read:

What is new in 4.3.0

  • coord_polar()

    The polar coordinate system is most commonly used for pie charts, but
    it can also be used for constructing Spyder or Radar charts using the flat option.


    f-24a/images/polar_coord_pie.png f-24a/images/radar_chart.png

    See: example notebook.

  • In the theme():

    • panel_inset parameter - primarily used for plots with polar coordinates.

      See: example notebook.

    • panel_border_ontop parameter - enables the drawing of panel border on top of the plot geoms.

    • panel_grid_ontop, panel_grid_ontop_x, panel_grid_ontop_y parameters - enable the drawing of grid lines on top of the plot geoms.

  • geom_curve()


    f-24a/images/curve_annotation.png

    See: example notebook.

  • [UNIQUE] Visualizing Graph-like Data with geom_segment() and geom_curve()

    • Aesthetics size_start, size_end, stroke_start and stroke_end enable better alignment of
      segments/curves with nodes of the graph by considering the size of the nodes.

    • The spacer parameter allows for additional manual fine-tuning.


      f-24a/images/graph_simple.png f-24a/images/graph_on_map.png

    See:

  • The alpha_stroke Parameter in geom_label()

    Use the alpha_stroke parameter to apply alpha to entire label. By default, alpha is only applied to the label background.

    See: example notebook.

  • Showing Plots in External Browser

    The LetsPlot.setup_show_ext() directive allows plots to be displayed in an external browser window.

  • Updates in the Gallery

    f-24a/images/gal_bbc_cookbook.png f-24a/images/gal_penguins.png f-24a/images/gal_periodic_table.png f-24a/images/gal_wind_rose.png

Change Log

See CHANGELOG.md for other changes and fixes.

Code of Conduct

This project and the corresponding community are governed by the JetBrains Open Source and Community Code of Conduct. Please make sure you read it.

License

Code and documentation released under the MIT license. Copyright © 2019-2024, JetBrains s.r.o.

Release history Release notifications | RSS feed

This version

4.3.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

lets_plot-4.3.0-cp312-cp312-win_amd64.whl (2.5 MB view hashes)

Uploaded cp312

lets_plot-4.3.0-cp311-cp311-win_amd64.whl (2.5 MB view hashes)

Uploaded cp311

lets_plot-4.3.0-cp310-cp310-win_amd64.whl (2.5 MB view hashes)

Uploaded cp310

lets_plot-4.3.0-cp39-cp39-win_amd64.whl (2.5 MB view hashes)

Uploaded cp39

lets_plot-4.3.0-cp38-cp38-win_amd64.whl (2.5 MB view hashes)

Uploaded cp38

lets_plot-4.3.0-cp37-cp37m-win_amd64.whl (2.5 MB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page