Comments (5)
Thanks for reporting. I will try this on Windows and figure out why.
Error: BackendError(DrawingError(IoError(Os { code: 3, kind: NotFound, message: "The system cannot find the path specified." })))
This error should be caused by the output directory not found. So the fix should be as easy as changing the path used by the BitMapBackend
.
Also could you please provide more details how you run the WASM demo on your side?
Basically, you cannot open the demo directly because browser security restrictions. So you need serve the content with a HTTP server on your local.There's an script in that folder, which you should be able to run that. But I haven't a chance to make sure it work for windows yet.
from plotters.
For the WASM demo, I ran the start-server.sh
script from the examples directory. It fails on the last line where python is used. Since it was python 2 based http server. I changed it locally to http.server
which is in python3 and ran the server. I can go to the link with that fix but do not see anything. Opening the console shows error in loading pkg/wasm-demo.js
.
from plotters.
That's odd, could you please share the modified script ?
I tried with python 3.3, it loads correctly.
Also, there should be a wasm-bindgen generated js file at www/pkg/wasm-demo.js
.
from plotters.
I am using Python 3.7.
After running the start-server.sh script with the following change in the last line
python -m http.server
I get the following error in the browser console in Firefox and Chrome.
Loading module from “http://localhost:8000/pkg/wasm_demo.js” was blocked because of a disallowed MIME type (“text/plain”).
localhost:8000
Loading failed for the module with source “http://localhost:8000/pkg/wasm_demo.js”.
from plotters.
Hi,
I have finally got a chance to use a Window machine. And I made the change, now it works on Windows.
You can also use a batch file to start the server. start-server.bat
Closing the issue, feel free to reopen it if there's still some problem!
Thanks,
from plotters.
Related Issues (20)
- [Feature Request] Rug plot HOT 1
- [BUG] Plotters homepage looks wrong
- [Feature Request] Placing caption inside chart area
- [Feature Request] Option to display segment count/value above or on Histogram bars
- Add typst support to plotters HOT 3
- [Feature Request] implement AsRangedCoord for RangeInclusive<A>
- Make the method `backend_ops` of `DrawingArea` public[Feature Request]
- It is really hard to extend the api, is there any plan to modify the api for easier using? HOT 9
- [Feature Request] Implement `LogScalable` for `usize` and `isize` HOT 1
- [Feature Proposal] Enhanced Default behaviors and Wrappers for immediately Plotting HOT 1
- Rendering a picture on a plot renders alpha channel incorrectly
- [BUG] x_labels(n) add more entries than n.
- [Feature Request] Change legend text height
- [BUG] types/datetime: replace deprecated chrono::Date* with NaiveDate
- [BUG] Panic occurs when drawing with logarithmic coordinate system
- [BUG] DrawingErrorKind is not exported from `plotters`, but it is used in return types on exported types HOT 1
- [BUG] Composable elements not working with 3D HOT 1
- [Feature Request] Change `estimate_text_size` to take `&mut self`
- [Feature Request] Make IntoDrawingArea more flexible
- GATs are stable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plotters.