[Kst] Apply df1.kst for df1.dat to df2.dat from kst2 GUI

Roger Wehage raw915 at gmail.com
Fri Apr 17 13:24:29 UTC 2015


That wasn’t exactly what I had in mind. I’m trying to set up a process whereby the user doesn’t have to know anything about kst2, but can still use its full functionality, if so desired. If I apply Sublime Text or Awk, for example, to change all occurrences of "df1.dat” in df1.kst to "df2.dat" and save the results back in df1.kst, then the kst2 GUI will display the contents of df2.dat exactly as it did for df1.dat. That way the user wouldn't have to do anything but launch the kst2 GUI, go to FILE, and select df1.kst. 

I would prefer to avoid even these steps by using a command line, but I’m having some problems here. For example, if I do ./kst2 ~/kst_data/df1.kst from within /Applications/kst2.app/Contents/MacOS, I get the same results as when launching the kst2 GUI, going to FILE, and selecting df1.kst. That is, the desired plots come right up without doing anything else.

However, when I create a link /usr/bin/kst2 –> /Applications/kst2.app/Contents/MacOS/kst2 and enter kst2 df1.kst from the subdirectory containing the df2.dat file I get the following errors:

kst2 df1.kst
objc[5318]: Class QCocoaColorPanelDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QMacSoundDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaPanel is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaView is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaWindow is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaWindowDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaMenuLoader is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSApplication is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaApplicationDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaWindowCustomThemeFrame is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaToolBarDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaMenu is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSOpenSavePanelDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaFontPanelDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSPanelProxy is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSWindowProxy is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaPageLayoutDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QCocoaPrintPanelDelegate is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSImageView is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSStatusItem is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[5318]: Class QNSMenu is implemented in both /Applications/kst2.app/Contents/Frameworks/QtGui.framework/Versions/4/QtGui and /usr/local/Cellar/qt/4.8.6/lib/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
QWidget: Cannot create a QWidget when no GUI is being used
Abort trap: 6

I haven’t figured out how to resolve this problem. Any ideas?

> On Apr 17, 2015, at 7:04 AM, Ben Lewis <benlewis003 at gmail.com> wrote:
> 
> Hi Rodger,
> 
> You can use the "Change Data File" icon. It is located two to the right of the "Data Wizard" icon.
> 
> See https://youtu.be/3YZVC-GiS_4 The change data file tool is discussed at the 5min 20sec mark.
> 
> Regards, Ben
> 
> On 17/04/2015 9:50 PM, Roger Wehage wrote:
>> I have installed the GUI version of kst2 on OS X Yosemite 10.10.3 using the kst-2.0.8-binary.dmg download. I used the Data Wizard to set up plots for data file df1.dat and saved the setup in df1.kst. I want to apply df1.kst to a second data file df2.dat.
>> 
>> Data files df1.dat and df2.dat are ASCII. The columns are space-separated with headers. Both files have the same number of columns but different number of lines. I set up df1.kst to read from frame 0 to the end, which is what I want for df1.dat and df2.dat.
>> 
>> Is there a way to apply df1.kst to df2.dat from the GUI?
>> 
>> 
>> Roger Wehage
>> raw915 at gmail.com
>> I prefer to use encrypted email.
>> My public key fingerprint is 2FC0 7616 DDB6 6B42 FF9C 775A FAEF DF7B 266E DB80.
>> Learn how to encrypt your email with the Email Self Defense guide (https://emailselfdefense.fsf.org/).
>> 
>> 
>> 
>> _______________________________________________
>> Kst mailing list
>> Kst at kde.org
>> https://mail.kde.org/mailman/listinfo/kst
> 
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst

Roger Wehage
raw915 at gmail.com
I prefer to use encrypted email.
My public key fingerprint is 2FC0 7616 DDB6 6B42 FF9C 775A FAEF DF7B 266E DB80.
Learn how to encrypt your email with the Email Self Defense guide (https://emailselfdefense.fsf.org/).



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20150417/0e619758/attachment-0001.html>


More information about the Kst mailing list