itglobal / matplotlibcs Goto Github PK
View Code? Open in Web Editor NEWA tiny utility for utilizing Matplotlib Python charting library from C#.
License: MIT License
A tiny utility for utilizing Matplotlib Python charting library from C#.
License: MIT License
Hello,
my problem is that the code (Example 2D Point) is very slow, and if there's the t.wait function, it takes more or less forever.
Without the wait, it still takes a long time, but I cannot find the image.
Did I miss something or is there a specific point must follow?
As a simplified version of the Line2D
When running the server manually (had some other bugs in matplotlib_cs.py
) and keeping track of the output, I see this:
MatplotlibCS\line_2d.py:32: MatplotlibDeprecationWarning: pyplot.hold is deprecated.
Future behavior will be consistent with the long-time default:
plot commands add elements without first clearing the
Axes and/or Figure.
plot.hold(True)
Solution would be removing the plot.hold
call, as the new behaviour is consistent without it. I'll create a PR for that.
Probably in a case when we launch a new process, we have to wait for some time before trying to access web API.
When creating multiple plots, say two with onlySaveImage = true
and then one with onlySaveImage = false
, I get all three plots shown, in my understanding it should only open the last of my three plots in a window (I save the first two to "real" locations, the last one to a temporary file, due to the lack of an "only show, don't save" option).
Putting plot.close("all")
here does solve the problem for me.
if not task["onlySaveImage"]:
plot.show()
plot.close("all")
What do you think?
Is it possible to display matplotlib plots directly inside C# GUI (not in a separate window) ?
Throws at 👍
private bool CheckIfWebServiceIsUpAndRunning()
{
try
{
_log.Info("Check if python web-service is already running");
//Creating the HttpWebRequest
var request = WebRequest.Create(_serviceUrlCheckAliveMethod) as HttpWebRequest;
//Setting the Request method HEAD, you can also use GET too.
request.Method = "GET";
//Getting the Web Response.
var response = request.GetResponse() as HttpWebResponse; <<<<<
No connection could be made because the target machine actively refused it No connection could be made because the target machine actively refused it
Hola! @pkoryakin has created a ZenHub account for the ITGlobal organization. ZenHub is the only project management tool integrated natively in GitHub – created specifically for fast-moving, software-driven teams.
To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.
ZenHub adds a series of enhancements directly inside the GitHub UI:
Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @pkoryakin.
In Flask, all view functions should return something, just an empty string is enough. Adding return ""
to the api_plot
function will make it return an empty response with status code 200.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.