[ 
https://issues.apache.org/jira/browse/LIVY-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gyorgy Gal updated LIVY-433:
----------------------------
    Fix Version/s: 0.10.0
                       (was: 0.9.0)

This issue has been moved to the 0.10.0 release as part of a bulk update. If 
you feel this is moved out inappropriately, feel free to provide justification 
and reset the Fix Version to 0.9.0.

> Livy sparkR plot does not allow to define size of plot
> ------------------------------------------------------
>
>                 Key: LIVY-433
>                 URL: https://issues.apache.org/jira/browse/LIVY-433
>             Project: Livy
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>         Environment: HDP
>            Reporter: Matthias
>            Priority: Major
>             Fix For: 0.10.0
>
>
> a simple plot does always plot at the same size. 
> {code:java}
> x = rnorm(10)
> plot(x){code}
> (480x480, which is the default for the png() function in R).
> Probably offending code :
> [https://github.com/apache/incubator-livy/blob/c1aafeb6cb87f2bd7f4cb7cf538822b59fb34a9c/repl/src/main/scala/org/apache/livy/repl/SparkRInterpreter.scala#L199]
> {code:java}
> // Create a image file if this command is trying to plot.
> val tempFile = PLOT_REGEX.findFirstIn(code).map { case _ =>
> val tempFile = Files.createTempFile("", ".png")
> val tempFileString = tempFile.toAbsolutePath
> code = f"""png("$tempFileString")\n$code\ndev.off()"""
> tempFile
> }{code}
>  
> ideally this should be parametrized to allow custom plot-sizes.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to