Это должно работать:
legend(numpoints=1)
BTW, если вы добавите строку
legend.numpoints : 1 # the number of points in the legend line
в ваш файл matplotlibrc, тогда это будет новый по умолчанию.
[См. также точки рассеяния в зависимости от вашего графика.]
использовать java -classpath "full-path-of-folder-that-contains-resources" -jar jar-to-run.jar
пример: java -classpath C:\java\example -jar example.jar
EDIT: альтернативное решение
<bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:${config-location}/file_name.properties</value>
</list>
</property>
</bean>
и использовать java -Dconfig-location=absolute_path_to_config_folder -jar your.jar
Вы пробовали без тегов списка?
<bean class="org.springframework.beans.factory.config.PropertyPlaceHolderConfigurer">
<property name="location" value="classpath:path/to/service.properties" />
</bean>