Skip to content

Commit bd5c696

Browse files
authored
Merge pull request #179 from pirrmann/patch-1
Set the image export scale back to 1
2 parents 9bd08f6 + 893cf02 commit bd5c696

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Plotly.NET.ImageExport/PuppeteerSharpRenderer.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type PuppeteerSharpRenderer() =
4141
fun (x:Match) ->
4242
x.Result(
4343
"$1"
44-
+ $".then(x => Plotly.toImage(x, {{ format: '{StyleParam.ImageFormat.toString format}', scale: 2, width: {width}, height: {height} }}))"
44+
+ $".then(x => Plotly.toImage(x, {{ format: '{StyleParam.ImageFormat.toString format}', scale: 1, width: {width}, height: {height} }}))"
4545
+ ".then(img => window.plotlyImage = img)"
4646
)
4747
)
@@ -193,4 +193,4 @@ type PuppeteerSharpRenderer() =
193193

194194
member this.SaveSVG (path:string, width:int, height: int, gChart:GenericChart.GenericChart) =
195195
(this :> IGenericChartRenderer).SaveSVGAsync(path, width, height, gChart)
196-
|> Async.RunSynchronously
196+
|> Async.RunSynchronously

0 commit comments

Comments
 (0)