Community RSS Feed
http://community.wolfram.com
RSS Feed for Wolfram Community showing any discussions in tag Mathematica sorted by activeCan't display dynamic data
http://community.wolfram.com/groups/-/m/t/1102243
Hi
So i tried to display data dynamically but it dosent work.
When i put **Dynamic[data, UpdateInterval -> 2]** where my data is **FinancialData["NASDAQ:AAPL"]**,when i press shift i can see the current value of the data but it dosent update it with the dynamic function. What am i doing wrong ?
Same when i put **Dynamic[DateListPlot[data, Joined -> True],
SynchronousUpdating -> False]**,if i press shift i receive a message saying *DateListPlot::ldata: 1.1231` is not a valid dataset or list of datasets.*
I hope soemone can help me.Thanksalex grover2017-05-22T16:22:18ZGraph Editor with OOP
http://community.wolfram.com/groups/-/m/t/1100917
GraphEdit[] is a useful and the only one tool for graph editing introduced in ver.10, however, when you want create a new and a complex graph, you will find that is sometimes tedious job caused of the slow response of it.
Mathematica Event handling system is very useful and strong, however, the number of targets, such as the locators become large, handling the target becomes more complex and that situation appears as slow program response. This situation is one of the limits of the Mathematica programming style.
OOP is a pathway to make an easy handling method for large number of targets that, in terms of OOP, instances what are existing simultaneously in Mathematica name space.
My project objective is to show that Object-Oriented-Programming style can solve this limitation. In the graph editor, each target (vertex) and allows(edges) are represented as instances produced form nested class of OOP. Also, this project shows that the OOP is familiar to Event handler.
This GraphEditor program can
make named vertex and arrows connecting with other vertices,
move objects on the board,
delete vertices and arrows,
save and load the graph,
and convert to a Mathematica graph.Hirokazu Kobayashi2017-05-22T12:41:36Zrayshade 4mm version 11.0 released: Raytracing using Mathematica Front End
http://community.wolfram.com/groups/-/m/t/1098411
See your Graphics3D beautifully rendered and Shown or Manipulated to right in your front end, without all the hardware and software (ie without Export to 3DStudio et al).
https://sourceforge.net/projects/rayshade-math/
(rendering it's slower but "better" Mathematica's GL/CL, rendering can produce astounding looks for some graphics, but rendering is not good for mapping and many other sciences. it's good for leisure certainly!)
For use with Mathematica 4.0 - 11.0. Makes file.ray or .pov that will look much like image in notebook except rendered in 3D using raytracing. Results Show in front-end. A few more Mathematica primitives supported but more-so all features do more of what Mathematica does, and with greater control. Also works with many Graphics (ie 2D pie charts) as well. However 11.0 is too big to comment on: many will work many not.
Raytracing can make images of some Graphics3D more realistic compared to even GL/CL/Cuda (game and geo/mapping accelerated 3D).
(3DStudio Art renderer or others are ostensibly upwardly better renderers than rayshade and povray, only the two free renderers are supported at this time)
POVRay is supported about as well.
For an amimation and a very few pics see:
http://community.wolfram.com/groups/-/m/t/1096001
![enter image description here][1]
https://sourceforge.net/projects/rayshade-math/
[1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=ScreenShot2017-03-28at12.39.31PM.png&userId=1095727John Hendrickson2017-05-19T01:45:47ZMonitor importing process of a CSV file with ProgressIndicator or alike
http://community.wolfram.com/groups/-/m/t/1099739
Dear all,
I would like to track the importing process of a CSV file. The file is pretty large and it takes hours to load it into Mathematica. To evaluate at which state the uploading process is, I would like to use a Progress Bar or equivalent. Therefore I read at StackOverflow that there is a possibility to track the calculation process of an operation using `Monitor` or `ProcessIndicator`. Unfortunately, I have not been able to adapt the code or find the other code which makes this possible. Therefore I am wondering if someone already used this kind of solution to track an importing forces of a CSV file into Mathematica?
I would be very happy if someone could help me, thank you in advance!
Best regards
AlexAlexander Hempfing2017-05-21T16:50:02ZDeploying a Manipulate to the cloud
http://community.wolfram.com/groups/-/m/t/1099605
I have tried to deploy a Manipulate to the cloud.
In a Manipulate it is common, and useful, to give sliders the option Appearance->"Labeled". To indicate the current value as set by the slider.
But in the cloud representation the sliders current value is just given as an empty field. Example below.
**Desktop:**
![enter image description here][1]
**Cloud:**
![enter image description here][2]
Does anyone know a fix?
[The cloud link][3]
[1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=01.InDesktop.png&userId=93385
[2]: http://community.wolfram.com//c/portal/getImageAttachment?filename=02.InCloud.png&userId=93385
[3]: %5C!%5C%28%20TagBox%5B%20ButtonBox%5B%20PaneSelectorBox%5B%7B%20%20%20%20%20%20False-%3E%22%5C%3C%5C%22https://www.wolframcloud.com/objects/a3433957-bb2a-%5C%204730-8a34-ad15d68a5668%5C%22%5C%3E%22,%20True-%3E%20StyleBox%5B%22%5C%3C%5C%22https://www.wolframcloud.com/objects/a3433957-bb2a-4730-%5C%208a34-ad15d68a5668%5C%22%5C%3E%22,%20%22HyperlinkActive%22%5D%7D,%20Dynamic%5B%20CurrentValue%5B%22MouseOver%22%5D%5D,%20BaseStyle-%3E%7B%22Hyperlink%22%7D,%20FrameMargins-%3E0,%20ImageSize-%3EAutomatic%5D,%20BaseStyle-%3E%22Hyperlink%22,%20ButtonData-%3E%7B%20URL%5B%22https://www.wolframcloud.com/objects/a3433957-bb2a-4730-8a34-%5C%20ad15d68a5668%22%5D,%20None%7D,%20ButtonNote-%3E%22https://www.wolframcloud.com/objects/a3433957-bb2a-4730-%5C%208a34-ad15d68a5668%22%5D,%20Annotation%5B#,%20%20%20%20%20%20%22https://www.wolframcloud.com/objects/a3433957-bb2a-4730-8a34-%5C%20ad15d68a5668%22,%20%22Hyperlink%22%5D&%20%5D%5C%29
EDIT: When I click the link above nothing seems to happen. But the link works (most of the time) when clicked from outside the community. (the Manipulate was deployed with Permissions->"Public"). Heres the link in "cleartext":
https://www.wolframcloud.com/objects/a3433957-bb2a-4730-8a34-ad15d68a5668Hans Milton2017-05-20T19:50:57ZImplementing Dynamic Buttons for Phonetics
http://community.wolfram.com/groups/-/m/t/1099360
In a previous post of mine [Google Translate Structure][1], I've shown how to a TextStructure-like box.
In this post, I'll show how can you create a button that changes dynamically when clicked (I didn't find too many examples of it) to show the phonetic form of a word.
First, my MakeBox code slightly modified to allow IPA to work properly.
MakeBoxes[StructureElement[main_, down_], _] := GridBox[{
{MakeBoxes@main}, {StyleBox[MakeBoxes@down, GrayLevel[0.6]]}},
BaseStyle -> "TextElementGrid"]
Next, we need a simple function that outputs IPA, WordData can do this but not all words have phonetic form.
SetAttributes[{IPA, IPAQ, ButtomIPA}, Listable]
IPA[word_String] := IPA@word = Module[{list},
If[StringCount[word, " "] != 0 \[Or] ! DictionaryWordQ@word, (* If it has space or is not in the dictionary *)
Missing@word,
(* WordData doesn't have IgnoreCase option... *)
list = Select[WordData[]~Join~DictionaryLookup[], StringMatchQ[#, word, IgnoreCase -> True] &];
If[Length@list == 0,
Return@Missing@word,
If[! MissingQ@#, ToString@#, Missing@word] &@
WordData[First@list, "PhoneticForm"]
]
]
]
IPAQ[word_String] := IPAQ@word = !MissingQ@IPA@word
RemovePeriod[word_String] := StringTrim@StringReplace[word, "." | "," | "!" | "?" -> ""]
And finally, some code to create the Dynamic Button
ButtomIPA[word_String] := If[IPAQ@RemovePeriod@word,
DynamicModule[{display = word, text = word, action = False},
Button[Dynamic@display,
If[StringQ@display,
display = StructureElement[text, IPA@RemovePeriod@text],
display = text
], Appearance -> None]
]
,
Style[word, GrayLevel[0.5]]
]
A simple usage would be (sorry for the poor GIF quality):
Row@Riffle[ButtomIPA@StringSplit["My lord, the queen would speak with you, and presently.", Whitespace], " "]
![Button][2]
[1]: http://community.wolfram.com/groups/-/m/t/1096168
[2]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Video.gif&userId=845022Thales Fernandes2017-05-20T23:15:07ZWhy do I get different results for Mellin Convolution?
http://community.wolfram.com/groups/-/m/t/1099130
Why do I get the same results from each of the first pair below, but different results from each of the second and third pairs below? How do I rewrite In[653] and In[655] to get the correct result?
------------------------
In[657]:= MellinConvolve[g[x], DiracDelta[x - 1], x, y]
Out[657]= g[y]
In[658]:= Assuming[y > 0, Integrate[g[x] DiracDelta[y/x - 1]/x, {x, 0, Infinity}]]
Out[658]= g[y]
------------------------
In[652]:= MellinConvolve[g[x], DiracDelta'[x - 1], x, y]
Out[652]= g[y] + y Derivative[1][g][y]
In[653]:= Assuming[y > 0, Integrate[g[x] DiracDelta'[y/x - 1]/x, {x, 0, Infinity}]]
Out[653]= g[y] - y Derivative[1][g][y]
------------------------
In[654]:= MellinConvolve[g[x], DiracDelta''[x - 1], x, y]
Out[654]= 2 g[y] + 4 y Derivative[1][g][y] + y^2 (g^\[Prime]\[Prime])[y]
In[655]:= Assuming[y > 0,
Integrate[g[x] DiracDelta''[y/x - 1]/x, {x, 0, \[Infinity]}]]
Out[655]= 2 g[y] + y (-2 Derivative[1][g][y] + y (g^\[Prime]\[Prime])[y])
------------------------
I'm using Mathematica 11 Home Edition running on Ubuntu LTS.
Version Number: 11.0.0.0
Platform: Linux x86 (64-bit)Steven Clark2017-05-20T03:44:04ZGet FinancialData price history?
http://community.wolfram.com/groups/-/m/t/1097940
Since 16 may 2017, why am I not able to get the price history of US stock market tickers? Please see output below! Has anything changed?
In[9]:= FinancialData["GE", {{2017, 1, 3}, {2017, 5, 15}}]
Out[9]= Missing["NotAvailable"]
In[10]:= FinancialData["IBM", {{2017, 1, 3}, {2017, 5, 15}}]
Out[10]= Missing["NotAvailable"]sridev ramaswamy2017-05-18T12:09:48ZWhy is ParallelMap Slower Than Map?
http://community.wolfram.com/groups/-/m/t/1098842
Consider the following code:
In[3]:= AbsoluteTiming[Map[Sqrt, 1.0*Range[10^7]];]
Out[3]= {0.323223, Null}
In[5]:= AbsoluteTiming[ParallelMap[Sqrt, 1.0*Range[10^7]];]
Out[5]= {36.9965, Null}Frank Kampas2017-05-19T13:01:58ZMathematica frozen -- possibly a bad update
http://community.wolfram.com/groups/-/m/t/1093145
I just sent this in to Wolfram tech support:
Today I tried to do work with Mathematica on my laptop. As soon as the kernel starts it freezes evaluating the first cell – it just keeps running and won’t respond to an abort. I suspected a bad update.
I started Mathematica on my workstation, but disabled dynamic updating before launching the kernel. It evaluated the first cell (2+2) as usual. I then enable dynamic updating and repeated. That machine is now frozen as well.
I have tried both a fresh start and a complete uninstall/reinstall. Neither solved the problem.
I had work to do today – Please get this fixed SOON.
Both computer are running MMA 11.1.1.0 on Win7 x64.David Keith2017-05-14T17:05:58ZModify display features of Mathematica?
http://community.wolfram.com/groups/-/m/t/1093068
How to get rid of the comments shown by mathematica afetr each line which explain whatever command is typed ?
How to change the size of the characters of the menu ?Pascal D2017-05-14T12:51:58ZFinancial data from Quandl in Wolfram Language using QuandlLink
http://community.wolfram.com/groups/-/m/t/540228
QuandlFinancialData in QuandlLink package allows us to get financial data in Mathematica from Quandl. Please visit https://www.quandl.com to find out more about all open/free data as well as premium data that can be downloaded from them. The website also contains the limitation on how much data you can download.
It is recommended to sign up for a free Quandl API key to download data from Quandl.
Please go to following link to download QuandlLink package and for the installation instructions:
https://github.com/bajracha71/Quandl-Mathematica-QuandlLink
Some of the Free Data source include:
1. US Federal Reserve Data Releases
2. US Treasury
3. Chicago Mercantile Exchange Futures Data
4. EUREX Futures Data
5. Google Finance
6. Yahoo Finance
Please go to following link to find for complete list of databases available in Quandl:
- Free Databases: https://www.quandl.com/search?type=free
- Premium Databases: https://www.quandl.com/search?type=premium
Examples:
Needs["QuandlLink`"]
In[3]:= dowJones = "YAHOO/INDEX_DJI";
dowJonesData =
QuandlFinancialData[dowJones, startDate -> "2015-05-01",
endDate -> "2015-06-01"]
Out[3]= {{{Date}, {Open, High, Low, Close, Volume,
Adjusted Close}}, {{2015, 5, 1}, {17859.3, 18028.9, 17859.3,
18024.1, 9.17*10^7, 18024.1}}, {{2015, 5, 4}, {18026., 18133.8,
18026., 18070.4, 8.601*10^7, 18070.4}}, {{2015, 5, 5}, {18062.5,
18086., 17905.7, 17928.2, 9.534*10^7, 17928.2}}, {{2015, 5,
6}, {17934.8, 18019.8, 17733.1, 17842., 1.0043*10^8,
17842.}}, {{2015, 5, 7}, {17840.3, 17973.1, 17796.9, 17924.1,
8.092*10^7, 17924.1}}, {{2015, 5, 8}, {17933.6, 18205.2, 17933.6,
18191.1, 9.496*10^7, 18191.1}}, {{2015, 5, 11}, {18187.8, 18200.,
18089.1, 18191.1, 8.605*10^7, 18191.1}}, {{2015, 5, 12}, {18096.2,
18119.2, 17924.8, 18068.2, 8.927*10^7, 18068.2}}, {{2015, 5,
13}, {18070.4, 18132.8, 18039.2, 18060.5, 8.518*10^7,
18060.5}}, {{2015, 5, 14}, {18062.5, 18299.3, 18116.5, 18252.2,
9.158*10^7, 18252.2}}, {{2015, 5, 15}, {18252., 18272.7, 18215.1,
18272.6, 1.0822*10^8, 18272.6}}, {{2015, 5, 18}, {18267.3, 18325.5,
18244.3, 18298.9, 7.908*10^7, 18298.9}}, {{2015, 5, 19}, {18300.5,
18351.4, 18261.4, 18312.4, 8.72*10^7, 18312.4}}, {{2015, 5,
20}, {18315.1, 18350.1, 18272.6, 18285.4, 8.019*10^7,
18285.4}}, {{2015, 5, 21}, {18285.9, 18314.9, 18249.9, 18285.7,
8.427*10^7, 18285.7}}, {{2015, 5, 22}, {18286.9, 18286.9, 18217.1,
18232., 7.889*10^7, 18232.}}, {{2015, 5, 26}, {18229.8, 18229.8,
17990., 18041.5, 1.0944*10^8, 18041.5}}, {{2015, 5, 27}, {18045.1,
18190.4, 18045.1, 18163., 9.64*10^7, 18163.}}, {{2015, 5,
28}, {18154.1, 18154.1, 18066.4, 18126.1, 6.751*10^7,
18126.1}}, {{2015, 5, 29}, {18128.1, 18128.1, 17967.7, 18010.7,
1.3981*10^8, 18010.7}}, {{2015, 6, 1}, {18017.8, 18105.8, 17982.1,
18040.4, 8.564*10^7, 18040.4}}}
Documentation on how to use QuandlFinancialData can be found in the package.
<<QuandlLink`
?QuandlFinancialData
[1]: https://github.com/bajracha71/Quandl-Mathematica-QuandlLinkAnmol Bajracharya2015-07-31T15:34:34ZCompare/contrast Wolfram|One, Development Platform, Mathematica Online, etc
http://community.wolfram.com/groups/-/m/t/1096129
Can somebody give a succinct comparison of the features of the various products: Mathematica, Mathematica Online, Wolfram|One, Wolfram Development Platform, Wolfram Cloud, Wolfram Data Drop.
I find differentiating so many similar products &mdash; especially those manifestly cloud-based &mdash; rather confusing.Murray Eisenberg2017-05-16T18:35:44ZAcquire images from a GigE camera using .Net?
http://community.wolfram.com/groups/-/m/t/959198
I previously asked a question about accessing a GigE camera from within Mathematica using DeviceOpen[“Camera”]. Since I have not been able to figure out why this crashes the kernel I am trying to use the camera's .Net interface. I think I am close to figuring this out, but I clearly do not understand the syntax completely.
The camera I am using is a uEye UI-624xSE-C. The manual for the .Net interface to the camera has this in the “getting started quickly” section:
Setting-up the IDE
1.Copy the uEyeDotNet.dll file into your project directory.
2.Open your project in Visual Studio.
3.In the "Solution Explorer" right-click on the "References" entry.
4.Select "Add reference". A dialog for adding references opens.
5.Open the "Browse" tab.
6.Select the uEyeDotNet.dll.
7.Click on "OK".
8.Open the project properties via the "Project > Properties" menu entry.
9.In the "Application" tab set the target framework to ".NET Framework 3.5".
Using the .NET interface
1.Create a uEye .NET object, e.g. uEye.Camera cam = new uEye.Camera();
2.Now you can start working with the .NET interface.
Capturing the first image
1.Initialize the camera: cam.Init();
2.Allocate an default image memory: cam.Memory.Allocate(out s32MemId); You can also allocate an image memory by using: cam.Memory.Allocate();
3.Capture a live image with cam.Acquisition.Capture(s32Wait); or a single image with cam.Acquisition.Freeze(s32Wait);
With s32Wait = uEye.Defines.DeviceParameter.Wait the image acquisition waits until an image is captured and returns afterwards. With s32Wait = uEye.Defines.DeviceParameter.DontWait the image acquisition returns immediately.
4.Display the image on the screen: cam.Display.Render(uEye.Defines.DisplayRenderMode mode)
mode selects different rendering modes, e.g. mode = uEye.Defines.DisplayRenderMode.FitToWindow.
My notebook is attached
My Code & Output:
![enter image description here][1]
[1]: http://community.wolfram.com//c/portal/getImageAttachment?filename=Capture.PNG&userId=221283Jeff Burns2016-11-08T13:44:09ZImageCapture an IP camera works on WM 11 for Windows?
http://community.wolfram.com/groups/-/m/t/1098007
Has anyone use ImageCapture to get a video stream from an IP capera? I need a far more powerful image that what is deliver by a regular web cam . I tried a Pinnacle frame grabber but fails to get an image. I was told that a IP camera deliver far better videos. But I do not want to spend money to learn that this do not work.Jose Calderon2017-05-18T09:31:56ZImport image from a GigE Camera?
http://community.wolfram.com/groups/-/m/t/954184
Any ideas how to acquire images from a GigE camera?
I want to access a GigE camera from within Mathematica on a computer running Windows 7. The camera I am using is a uEye UI-624xSE-C, but the GigE standard applies to many cameras. I am not currently using an RPi, but may in the future. I have not tried the camera and Mathematica together yet. I am not anticipating it to be as easy as accessing a web cam.Jeff Burns2016-11-02T14:07:29Z