The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Import wizard with graph template and script: Bug?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

guy27

8 Posts

Posted - 05/19/2014 :  1:58:44 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro 9.1.0 (64-bit) Sr2
Windows7 Enterprise Service Pack 1

Hello
I am trying to define a standard import and plotting procedure for ASCII data.
Using the import wizard, a custom graph template and some post-processing script.
(see: http://www.originlab.com/forum/topic.asp?TOPIC_ID=9490)
My graph template is using line+symbol, with open symbols, skipping every 10 symbols.

If I open a graph window by choosing the template, and then slide some data into it, it behaves as expected.

BUT:
If I import ASCII data using my custom filter, and the option to plot the data after import, the graph looses some of the settings, in particular:
- line plot instead of line+symbol.
- information about the X and Y axis scale max and min.

These information are not completely lost, if I select and slide the data afterwards into the same graph window, they are still plotted in the format defined by the template. It is only with the wizard that the template information is partially lost.

A further property lost is the filling of the data point. If I select a data-set from the graph imported using the wizard, and set it to line+symbol, it remembers how many symbols I wanted skipped, but it uses plain symbols instead of empty ones. It remembers correctly the symbol size.

It seems to me that this is a bug related to the combination of "import wizard" + plot template including "line+symbol"
What can I do to fix it?

lkb0221

China
497 Posts

Posted - 05/19/2014 :  3:10:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Can you try importing the data without the script, and then run the script after that?
Maybe there is something to do with your code, I guess.

Zheng
OriginLab
Go to Top of Page

guy27

8 Posts

Posted - 05/20/2014 :  05:06:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried without script, and I observe exactly the same behavior.
So it is not an issue with the post import script. It seems like a true bug of the import wizard. Please try and see if you can reproduce it.

Ok, here what I tried:
- start with a completely empty origin project
- create new graph from template: File>new>template> dialog box
- file>import>import Wizard
- in advanced filter option: no script, plot data in graph layer into which files are dropped, Plot data in graph with all files in one layer
What I see:
- all 4 data sets are correctly imported, the workbooks are hidden, and - I have 4 curves in my graph.
- The axis legend and stile of ticks are correct.
- The scales have been modified. Instead of keeping the Max and Min of the template
- The curve style is "line" instead of "line+symbol" as was in the tempalte.
- If I click on one of the curves and set it back to "line+symbol" it uses plain symbols instead of open ones.
- If I select the data in one of the worksheets, and slide it into the graph, it is imported correctly, with the right symbols.
Go to Top of Page

lkb0221

China
497 Posts

Posted - 05/20/2014 :  4:20:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

The "plot data in graph layer..." seems does not using the template settings (actually it totally ignored all its settings). You might need to replace it with some LT script.
I'll talk to our developers about this issue.

Zheng
OriginLab

Edited by - lkb0221 on 05/20/2014 4:25:30 PM
Go to Top of Page

guy27

8 Posts

Posted - 05/21/2014 :  04:01:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi
thanks for transmitting this bug information to your developers.
Can you give me an example of a simple LT script that I could use at the end of the import wizard to simply plot the curves in a graph respecting the template settings?
Thanks
Go to Top of Page

lkb0221

China
497 Posts

Posted - 05/21/2014 :  09:38:23 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Assume your imported data are in col(A)(X) and col(B)(Y), which are the first two columns in Sheet1.

// Start
range rr = [%H]Sheet1!2; // point to the Y column, %H means the current window
window -t p test; // create graph window by template called "test"
layer -i rr; // add dataset to graph
layer -a; // rescale
// End

Zheng
OriginLab

Edited by - lkb0221 on 05/21/2014 09:39:41 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000