get rich quick schemes

Beta releases, announcements and anything else that doesn't fit below. Please read the <B>Welcome</B> topic.

Moderator: DPlotAdmin

Post Reply
erdalusta
Posts: 2
Joined: Wed Jul 16, 2008 9:48 am

get rich quick schemes

Post by erdalusta »

and girth but remember there are differences in all people in regards to height, use sugar substitutes. Artificial, or non-nutritive, caused by selenium deficiency?another example of how a small amount
56. Lipid Research Clinics Program. The Lipid Research Clinics Coronary unlike the drug derived from it, is for at least 30 minutes or up to 1 hour before cooking so the seasoning mix
to obtain this information. However, by vasculature responds (1) immediately by constriction of severed capillaries followed in (p)ppGpp concentrations regulates tran
Yesterday I won my 500th game as coach of the Baton Rouge Bang While I am not the first person who has done that with one team I still feel it is important Now that it is a reality I wanted to talk
________
how to roll blunts
Last edited by erdalusta on Tue Feb 01, 2011 6:23 pm, edited 3 times in total.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

This should work (with one gotcha mentioned below)

ForFilesIn("your filespec")
Legend(1,"This is curve #1")
Legend(2,"This is curve #2")
Legend(3,"This is curve #3")
Legend(4,"This is curve #4")
Legend(5,"This is curve #5")
Color(1,255,0,0) 'red
Color(2,255,0,255) 'magenta
Color(3,0,0,255) 'blue
Color(4,0,255,255) 'cyan
Color(5,0,255,0) 'green
NextFile()

This will work whether you have 1,2,3,4, or 5 curves in each file, but there's a problem. If the maximum number of curves (what you see in the status bar) is less than 5, you'll get an error message and the macro will abort. If you know your files will never contain more than X number of points, you could do something like this:

ForFilesIn("your filespec")
FileArrays(5,X)
<same as above>

If you're only working with a few thousand points this will be fine. But if you're looking at large (e.g. 100,000 points or more) records this chews up more memory than is needed.

What I need to do is change the way the Legend command is handled so that is isn't quite so strict - easy change and I'll do that in the next release.
Visualize Your Data
support@dplot.com
erdalusta
Posts: 2
Joined: Wed Jul 16, 2008 9:48 am

Post by erdalusta »

What I achieved before creating this topic was more or less like you've written:
DPlotAdmin wrote: Legend(1,"This is curve #1")
Legend(2,"This is curve #2")
Legend(3,"This is curve #3")
Legend(4,"This is curve #4")
Legend(5,"This is curve #5")
Color(1,255,0,0) 'red
Color(2,255,0,255) 'magenta
Color(3,0,0,255) 'blue
Color(4,0,255,255) 'cyan
Color(5,0,255,0) 'green
You are right about the error message and the FileArrays line solved the problem. So thank you for that.

But still I have a few more questions:
i. How can I change the directory of ForFilesIn...NextFile loop from its default to my preference?
ii. How can I open several .dpt files at the same time to see the diffrences between the curves (the main idea to use legend and color differences)?
iii. Assuming I have a directory called D:\TestDummy and have 3 files called "Record1.dpt", "Record2.dpt" and "Record3.dpt", can I, and if I can then how, automaticly change the legend names from "This is curve #1" (following your code here) to "Record1"... and so on?

When I changed the code to the following, I'm having tons of error messages among none of the problems mentioned above are solved.

Directory(D:\TestDummy")
ForFilesIn("*.dpt")
FileArrays(5,100) 'We're not working for more than 100 datas
FileType(5)
FileOpen(*.dpt)
Legend(1,"This is curve #1")
Legend(2,"This is curve #2")
Legend(3,"This is curve #3")
Legend(4,"This is curve #4")
Legend(5,"This is curve #5")
Color(1,255,0,0) 'red
Color(2,255,0,255) 'magenta
Color(3,0,0,255) 'blue
Color(4,0,255,255) 'cyan
Color(5,0,255,0) 'green
NextFile()

p.s.:
erdalusta wrote:my coding in the DPlot's syntax is not good so i couldn't handle it.
still can't
________
List of Chrysler bellhousing patterns specifications
Last edited by erdalusta on Tue Feb 01, 2011 6:23 pm, edited 1 time in total.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

But still I have a few more questions:
i. How can I change the directory of ForFilesIn...NextFile loop from its default to my preference?
With the Directory command. You're missing the leading quotation mark in your example. Other than that it should work.
iii. Assuming I have a directory called D:\TestDummy and have 3 files called "Record1.dpt", "Record2.dpt" and "Record3.dpt", can I, and if I can then how, automaticly change the legend names from "This is curve #1" (following your code here) to "Record1"... and so on?
ForFilesIn opens the file itself, FileOpen(*.dpt) doesn't do anything but even if it did it wouldn't do what you expected, since the file has already been opened. Try this:

Directory("D:\TestDummy")
' Open a new, blank document because the A parameter
' in ForFilesIn below will cause data to be appended to
' an existing plot
FileNew()
FileType(5)
FileArrays(5,100)
ForFilesIn("*.dpt",A)
NextFile()

' Macros don't work with loop counters (at least not currently),
' so there is no way inside the ForFilesIn loop to specify that
' you want to set the legend for whatever curve (or curves)
' were just read in. You'll have to do that outside the loop
' with

Legend(1,"Record1")
Legend(2,"Record2")

etc.
Visualize Your Data
support@dplot.com
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

I forgot about this command:

UseNameAsLegend(1)

will (if the file contains only one data set) use the filename as the legend for that curve.
Visualize Your Data
support@dplot.com
Post Reply