-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
orca() does not support file paths #101
Comments
I think this has to do with the R wrapper. Probably best to post on https://github.com/ropensci/plotly/issues/new |
I'm having the same issue on Python 2.7. The filename is correct, but the figure is saved to the current directory instead of in the specified directory. |
Can you share a code snippet of your attempt? |
Here it is: I am saving two figures to disk, a 2D figure from matplotlib and a 3D figure from Plotly (using Orca). The 2D figure gets successfully saved to
|
what about: call(['orca', 'graph', json.dumps(fig, cls=plotly.utils.PlotlyJSONEncoder),
'-d', '{}/3d'.format(save_dir), '-o', '{}.png'.format(save_fname)]) ? |
@etpinard Yup, that works. Thanks! |
Ok great. But yeah call(['orca', 'graph', json.dumps(fig, cls=plotly.utils.PlotlyJSONEncoder),
'-o', '{}/3d/{}.png'.format(save_dir, save_fname)]) should work too. Bug confirmed. Thanks for reporting. The logic here Lines 116 to 117 in be699d6
doesn't seem quite right. |
I'm trying to export a static image in R using orca(), but it ignores the file path and just exports it to the current location of the script that I'm running.
For example, if I run
orca(image, "/images/plot1.png")
from a script located in/code/script.R
, it saves it to/code/plot1.png
instead of where I specified.The text was updated successfully, but these errors were encountered: