interactive

Get point information after dragging

*爱你&永不变心* 提交于 2019-12-01 17:44:22
There is the amazing mpld3 for interactive matplotlib-plots in IPython Notebooks. mpld3 also features plugins. One is especially interesting for me: You can pick a point in the plot and drag it around - it is presented here: http://mpld3.github.io/examples/drag_points.html . The source code in the link generates the plot below. I would like to have the information back from the plugin where I have dragged my points to. But I really get lost in the javascript part and how I could get information back from it. I have wondered about this and wanted to do something similar. This is what I have

Put a fixed title in an interactive 3D plot using rgl package, R

二次信任 提交于 2019-12-01 14:55:22
问题 I am trying to add a fixed title to an interactive 3d plot using the rgl package from R, but so far I haven't been able to do it. I also would like to have one main title and a subtitle under the main title. Here is a sample code, library(rgl) data<-read.table(text=" X Y Z 1 147.0883 -18.69122 -13.90000 2 147.0894 -18.69455 -10.97250 3 147.0883 -18.69122 -17.45000 4 147.0883 -18.69122 -15.44000 5 147.0883 -18.69122 -13.45000 6 147.0909 -18.69922 -12.25000 7 147.0883 -18.69122 -17.30000 8 147

Cannot Launch Interactive Program While Piping to Script in Python

こ雲淡風輕ζ 提交于 2019-12-01 11:18:57
I have a python script that needs to call the defined $EDITOR or $VISUAL . When the Python script is called alone, I am able to launch the $EDITOR without a hitch, but the moment I pipe something to the Python script, the $EDITOR is unable to launch. Right now, I am using nano which shows Received SIGHUP or SIGTERM every time. It appears to be the same issue described here . sinister:Programming [1313]$ echo "import os;os.system('nano')" > "sample.py" sinister:Programming [1314]$ python sample.py # nano is successfully launched here. sinister:Programming [1315]$ echo "It dies here." | python

Aplpy multiplot dynamic axis sharing

折月煮酒 提交于 2019-11-30 16:00:13
Is there any way to make multiplot aplpy plots dynamically share axes so that when one is moved or zoomed, it moves and zooms the others? I can achieve the affect using matplotlib pyplot's imshow and subplot routines, but using those limits some other important aspects of my plotting, while aplpy provides all the tools I need for my images. I have tried using the matplotlib cid commands and a function to recenter all the images based on click locations, but I can only zoom in, or out, not both, and I cant click and drag yet. My MWE of my plotting code is below: from astropy.io import fits

How can I use –X:Frames in Ironpython?

人盡茶涼 提交于 2019-11-30 15:37:42
Visual Studio 2010 + Ironpython for .net4 I want to use numpy in ironpython, and they said I must use frames support. So, I should running ipy with -X:Frames or -X:FullFrames on the command line. But, I have two questions: 1.how can i use -X:Frames or -X:FullFrames in Ironpython Interactive console? 2.If I use C# 4 to load py which contained numpy, how can I use extern parameter like -X:Frames or -X:FullFrames? Thanks a lot. Dave IronPython Tools for Visual Studio has been deprecated by Python Tools for Visual Studio (see http://pytools.codeplex.com ). Using Python Tools in VS 2010: open Tools

Edit labels in tooltip for plotly maps using ggplot2 in r

自古美人都是妖i 提交于 2019-11-30 14:53:43
I know this question has been asked a number of times but I think some of the underlying syntax for plotly has changed since those questions have been asked. Using ggplotly() to create a choropleth map gives the default tooltip of long, lat, group, and one of my variables from my aesthetics. I understand that tooltip maps only whats in the aesthetics. All I want to do is to customize the tooltip so it displays some of the variables in my dataset (including those not mapped to aesthetics) and not others (such as the coordinates). Below is a reproducible example and what I've tried so far. I

How to create touch interactive charts for android [closed]

不羁的心 提交于 2019-11-30 13:48:47
I need charts for my application where the user use gesture to redraw the charts in android. Could you suggest any charting API,tool or software which supports. ZingCharts is a javascript library that can be included in an HTML page which was loaded into a WebView. You can pass the data in JSON format to the javascript function. Graphs are animated, interactive, eye-catchy and fast as well. I used evaluation version and it worked well. Check out AndroidPlot: http://androidplot.com Like the previous poster said, you'll have to implement the gesture/keypress event handling yourself. You can take

How can I create a Dynamic - Interactive image map with jQuery?

给你一囗甜甜゛ 提交于 2019-11-30 10:14:51
So I am using the .Net framework, building with ASP.NET MVC, how do I create a Dynamic, interactive web 2.0 style Image Map? Where say for example, on a world map, if you hover over a country, the selected country will highlight, and a tool tip comes up with various information, and if you click the country it takes you to the said countries details page. I work on such a plugin jVectorMap. You can check it out here jvectormap.owl-hollow.net . Well, my answer below is not using jQuery but using flash based map. In my last project, one of the client requirement is to display a world map, with

Aplpy multiplot dynamic axis sharing

こ雲淡風輕ζ 提交于 2019-11-30 07:42:44
问题 Is there any way to make multiplot aplpy plots dynamically share axes so that when one is moved or zoomed, it moves and zooms the others? I can achieve the affect using matplotlib pyplot's imshow and subplot routines, but using those limits some other important aspects of my plotting, while aplpy provides all the tools I need for my images. I have tried using the matplotlib cid commands and a function to recenter all the images based on click locations, but I can only zoom in, or out, not

Interactive(?) plotting in Spyder with matplotlib

南楼画角 提交于 2019-11-30 07:12:22
问题 I am trying to migrate over to Python from Matlab and can't figure out how to get interactive(?) plotting working within the Spyder IDE. My test code is shown below. With the .ion() nothing happens, I get a quick flash of a figure being drawn then the window instantly closes and spits out my Hello. Without the .ion() the figure is drawn correctly but the script hangs and doesn't spit out Hello until I manually close the figure window. I would like the script to run like a matlab script would