| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 6 months |
| seen | 22 hours ago | |
| stats | profile views | 0 |
|
1d |
comment |
Changing the order of elements in a chart legend Ah, I got it! Seems a regular Plot only has one Rule following the two List elements in the FullForm of SwatchLegend. Removing r2_Rule and r2 in the delayed replacement does the trick. |
|
1d |
comment |
Changing the order of elements in a chart legend Where can I learn more about this type of syntax, eg. the l1_List and ri_Rule stuff? I'm not exactly sure how this is working, nor do I know how to use FullForm to help figure this out. I'm trying to flip a legend on a ListLogLogPlot using SwatchLegend. |
|
May 13 |
comment |
Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange Wow you're right. I happen to still have v8 installed so I loaded it up and checked. It looks like in v9 it no longer works. That's very strange. |
|
May 13 |
comment |
Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange Ah that's a nifty little function that I wasn't familiar with. The issue still remains, though, that it would be a plot of {x,y} pairs which makes it take much longer. |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Thanks @cormullion that did the trick. |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Deleted a comment because I was dumb. However, the point still stands from the deleted comment that I had to add //ToExpression to your definition of ns to get it to work. The numbers were not being treated as actual numbers, it would seem. |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Forgot about FileNameTake. Should be ok now! |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Fly in my ointment: Mathematica takes the file name to be the full absolute location, ie. C:\\Folder 1\\Folder 2\\FileName(1).csv. Can I get it to ignore the directories and give only the file name by itself? There are numbers in the folders and it throws everything off :/ |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? Ah yes it's obvious now that the 1 belongs to Flatten[]. Sorry for being lazy. I will want to spend a bit of time playing around with the code. |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? This place is full of wizards. I think this is exactly what I want. I will give it a shot soon. One question for now: I will be working with groups of files from various folders, and as such I would like to control what number "j" (NewNamej(k).csv) starts at. Is that the very last "1" in the block of code containing makeIndices? |
|
Jan 8 |
comment |
Renaming files of form FileName(i).csv to NewNamej(k).csv where j increments and k resets to 1 when there is a jump in i? @Hypnotoad they should come ordered with the caveat that the default Mathematica ordering function does not correctly order file names if the number of digits varies, ie. FileName(20).csv will come after FileName(100).csv. Is there a way to change that? |
|
Nov 28 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot For some particularly ugly data this sometimes gets the wrong hopping points but it works overall. Thank you very much for the answer! I may end up playing around a little with the threshold definition to get it to work differently. |
|
Nov 26 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot This looks pretty good... I'll play around with this with a few other data sets and see if there are any hiccups. Thank you! |
|
Nov 26 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot The numerical sorting to find the "saturated" y values works great so far! The second half of your solution is extremely close to working well, but it doesn't properly deal with the fact that there are two coercive values. It found the negative value with a good deal of accuracy. I may work on splitting my "pairs" variable into one for increasing values and one for decreasing values. |
|
Nov 26 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot @rcollyer That may certainly be one way to do it. About a year or so ago I wrote some Python code to split similar data into a ramping up and ramping down file, but I have since become more proficient with Mathematica. I can probably think of ways to do that but I'd ideally want to avoid it. My eventual goal is to build a notebook which will, with minimal input from me, run through several dozen sets of data and extract these values. |
|
Nov 26 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot Thanks for the response. Sorting my real data by x value may be problematic in the "hysteretic" region where there are two very different y values. The data comes in naturally ordered as subsequent pairs, so I should be able to skip this step anyways. I have added a link to a csv file of real raw data as an edit at the bottom of the original post. I will take a look at implementing the rest of your suggestion when I get a chance; I'm working on some other things for the moment. |
|
Nov 26 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot @DanielLichtblau I have added raw data as you requested. The data is by nature ordered sequentially by x value starting from zero. The x values end up repeating because the measurement requires that we end up back at the starting x value. I was thinking of something similar to what you're describing but I don't immediately see how to implement it. |
|
Nov 26 |
comment |
Analytically finding critical values in a hysteresis curve made with ListPlot @VLC I considered it but this data does not represent a "function" as it is multi-valued. |