SPSS Statistics

SPSS Statistics

Your hub for statistical analysis, data management, and data documentation. Connect, learn, and share with your peers! 


#Analytics
#SPSSStatistics
#Analyticstools
 View Only
  • 1.  Modifying Chart Titles?

    Posted 02/28/23 06:22 PM
    Is there a way of modifying chart titles, as there is for table titles via OUTPUT MODIFY?
    I would need to prepend the automatically generated title with an expression that is dynamically calculated in an external Python program and submitted via spss.Submit(). OUTPUT MODIFY can't do this, right?


  • 2.  RE: Modifying Chart Titles?

    Posted 02/28/23 06:33 PM

    OUTPUT MODIFY has the subcommand /GRAPHS:

    /GRAPHS CTEMPLATE = {["filespec", "filespec", ...]} {[name, name, ...] } VIZSTYLESHEET = "stylesheet name"

    I haven't checked to see if you can do something with a title in a CTEMPLATE. That would be the only way using this command.



    ------------------------------
    Rick Marcantonio
    Quality Assurance
    IBM
    ------------------------------



  • 3.  RE: Modifying Chart Titles?

    Posted 02/28/23 06:41 PM
    The SPSSINC MODIFY OUTPUT extension command allows you to modify titles but not directly in the chart.  That could be done with a custom function applied to the graph, but if you could run the GGRAPH/GPL code via Submit, you could modify the  GPL title code"\, which would be something like this
      GUIDE: text.title(label("this is my title"))
    before submitting it.

    Using the custom function, you would have to fetch the xml code for the chart, modify it, and set it back.

    --





  • 4.  RE: Modifying Chart Titles?

    Posted 02/28/23 06:45 PM
    Thanks, I'll certainly look into this at some point and I am rather sure that I will be back with implementation questions.
    For the current project, due to time constraints,  I'll have to abstain.