Questions tagged [lets-plot]

11 questions
6
votes
1 answer

How to get interactive plot of pyplot when using jupyter pycharm

Is it possible to get interactive plot when using jupyter in PyCharm IDE ? If not, Why ? By interactive plot I mean a plot in a window where I can zoom. I tried this, but python always crash : #%% import matplotlib.pyplot as plt import numpy as…
Thomas LESIEUR
  • 408
  • 4
  • 14
2
votes
1 answer

Multiple axis scale in Lets plot Kotlin

I'm learning some data science related topics and oh boy, this is a jungle of different libraries for everything Because of things, I went with Lets-plot, which has a nice Kotlin API that I'm using combined with Kotlin kernel for Jupyter…
Alberto S.
  • 7,409
  • 6
  • 27
  • 46
2
votes
1 answer

Add Subtitle, Caption and Legend title in Jetbrains' Lets-Plot

I've written a plot in Kotlin using https://github.com/JetBrains/lets-plot library. I want to be able to set a title, a subtitle, a caption, and edit (or remove) the legend title. val goodColors = listOf("#A1DBB2", "#69D2E7") val badColors =…
Niels
  • 9,264
  • 4
  • 29
  • 26
1
vote
1 answer

specify break points for histogram in Lets Plot Kotlin

ggPlot2 allows the break points to be specified for the tabulation of the histogram. To date, I have not figured out how to do this using Lets Plot Kotlin. Is there an approach for doing this using geom_histogram() in Lets Plot for Kotlin? I guess…
1
vote
0 answers

Best Kotlin library for dynamic real-time data plotting for desktop app?

I'm developing a desktop GUI application which includes the functionality of reading data from sensors and dynamically plotting said data in real time. I need the plots to be able to update every 1 to 1/4 second. In my research I've found a few…
1
vote
0 answers

How to align plots and share x or y axes with GGBunch in Lets-Plot (Python)

I would like to align plots and share x or y axes using Lets-Plot with Python. GGBunch allows to distribute subplots inside a figure, but it doesn't seem to have any option for sharing axes between plots. Plus, plots are not automatically aligned in…
egayer
  • 41
  • 5
1
vote
1 answer

Which android view should be used to display a jetbrains.letsPlot() + geomHistogram() -object?

I am having some trouble including a Plot-object (produced by jetbrains.letsPlot() + geomHistogram()) within the activity.xml for a Kotlin Android app. I am familiar with basic activity elements but I don't know which one to use in this case and I…
friesch
  • 13
  • 2
1
vote
1 answer

Kotlin lets-plot: minimal example

I would like to write a completely minimal example of lets-plot, which just saves png and doesn't use any frontend. For this, I created a "helloworld" Kotlin project in IntelliJ IDEA. Then I added Maven dependency…
E. Nerush
  • 69
  • 7
0
votes
0 answers

Unable to set colors for lets-plot chart with kotlin

i am trying to generate a pie chart with lets-plot with Kotlin and i am unable to manually set colors to the sections of the chart. I am using org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.4.1 and the image export and Kotlin api dependencies. Here…
0
votes
1 answer

How to specify `scale_color_manual()` in `python`, using `lets-plot`

My code is: import pandas as pd from lets_plot import * LetsPlot.setup_html() data = pd.read_csv('https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/mpg2.csv') ggplot(data, aes(x="engine horsepower", y="miles per gallon")) +…
erdi
  • 25
  • 4
0
votes
1 answer

How to update chart in Lets-Plot for Kotlin in realtime

I'm trying to modify the simple example in lets-plot-mini-apps github repo which using Lets-Plot Kotlin API in JVM app and renders plot to JavaFX Scene in way to periodically update data on a chart. This example rebuilds a plot panel each time after…
fmvin
  • 591
  • 2
  • 5
  • 9