Bug 418735

Summary: There is no created worksheets (and thus plots) in saved project
Product: [Applications] LabPlot2 Reporter: EsinAlexander <esina>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 2.7.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: The project where the plot was created, but dissapear after saving/reopen (right click on Y colimn => plot data => xy plot =>new plot in new worksheet)

Description EsinAlexander 2020-03-11 11:10:28 UTC
SUMMARY
There is no created worksheets (and thus plots) in saved project

STEPS TO REPRODUCE
1.Create a blank project, generate some data and plot it 
2.Save the project and closed it
3.Open saved project - now there is no worksheet with plots inside 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexander Semke 2020-03-11 21:10:50 UTC
Can you please attached your project file to this bug report?
Comment 2 EsinAlexander 2020-03-12 03:42:03 UTC
Created attachment 126737 [details]
The project where the plot was created, but dissapear after saving/reopen (right click on Y colimn => plot data  => xy plot =>new plot in new worksheet)

If i create a plot like this: 
right click on Y column => plot data  => xy plot =>new plot in new worksheet
 In this case  worksheet containing the plot dissapear after saving and reopen the project

If i create a plot like this:
 add new worksheet to the project=>add new xy plot=>add new xy curve and select data in the "general" tab 
every thing works ok
Comment 3 Alexander Semke 2020-03-12 21:01:14 UTC
(In reply to EsinAlexander from comment #2)
> Created attachment 126737 [details]
> The project where the plot was created, but dissapear after saving/reopen
> (right click on Y colimn => plot data  => xy plot =>new plot in new
> worksheet)
> 
> If i create a plot like this: 
> right click on Y column => plot data  => xy plot =>new plot in new worksheet
>  In this case  worksheet containing the plot dissapear after saving and
> reopen the project
> 
> If i create a plot like this:
>  add new worksheet to the project=>add new xy plot=>add new xy curve and
> select data in the "general" tab 
> every thing works ok
Ok. This is the same problem as was reported in Bug 413401. This only happens if you have a spreadsheet as child of a workbook and the plot created via the plot data dialog is also added as a child to the workbook. This bug is fixed in 2.8. 

As a workaround: 
1. if you want to use the plot data dialog, don't create spreadsheets as childrenn of workbooks
2. create manually a worksheet first and then let new plot to be created in this workhseet, as you also already realized.

*** This bug has been marked as a duplicate of bug 413401 ***