Skip to content

Commit d961340

Browse files
committed
Fix error message in ggsave()
1 parent 1ff7f46 commit d961340

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

devdocs/PUBLISHING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
### Publishing to Sonatype Central repository
1515
16-
> **Note**: when publishing a "Release" version to Sonatype, PGP signature is required.
16+
> **Note**: when publishing a "Release" version to Sonatype, a PGP signature is required.
1717
>
1818
> See: https://central.sonatype.org/pages/working-with-pgp-signatures.html
1919

plot-api/src/jvmMain/kotlin/org/jetbrains/letsPlot/export/ggsave.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,7 @@ private fun exportRasterImage(
241241
"""
242242
243243
Can't export plot to raster formats: ${e::class.simpleName} "${e.message}".
244-
Please add "lets-plot-image-export-<version>.jar" to your classpath.
245-
A Gradle dependency example:
246-
247-
implementation("org.jetbrains.lets-plot:lets-plot-image-export:<version>")
248-
249-
where <version> is the version of the Lets-Plot Multiplatform artifact you are using.
244+
Please add "org.jetbrains.lets-plot:platf-awt:${VersionChecker.letsPlotVersion}" to your dependencies to enable raster image export.
250245
""".trimIndent()
251246
)
252247

plot-api/src/jvmMain/kotlin/org/jetbrains/letsPlot/intern/settings/DefaultFrontendContext.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
package org.jetbrains.letsPlot.intern.settings
77

88
import org.jetbrains.letsPlot.FrontendContext
9+
import org.jetbrains.letsPlot.export.VersionChecker
910
import org.jetbrains.letsPlot.frontend.DefaultSwingFrontendContext
1011

1112
actual fun createDefaultFrontendContext(): FrontendContext {
@@ -17,7 +18,7 @@ actual fun createDefaultFrontendContext(): FrontendContext {
1718
1819
The frontend context is not defined.
1920
To define the frontend context please select one of the following options:
20-
a. Add "org.jetbrains.lets-plot:platf-awt:<version>" to your dependencies.
21+
a. Add "org.jetbrains.lets-plot:platf-awt:${VersionChecker.letsPlotVersion}" to your dependencies.
2122
b. Specify the frontend context explicitly: "LetsPlot.frontendContext = ..."
2223
2324
""".trimIndent()

0 commit comments

Comments
 (0)